import os
import keyboard
import time
import random
import string
import pyautogui
import schedule
import time
import random
open("seedlist.txt", "a").write("\n")
runloop = 1
run = 1
md = 0
pd = 0
def restart():
keyboard.press_and_release("alt + f4")
global runloop
runloop = 1
schedule.every(30).minutes.do(restart)
while run == 1:
schedule.run_pending()
if runloop == 1:
seed = ''.join(random.choices(string.digits + string.ascii_letters + string.punctuation, k=random.randint(1, 10)))
print(f"Using seed {seed}...")
open("seedlist.txt", "a").write(f"{seed}\n")
os.popen(r'"c:/Users/unkl0kk/Desktop/SourceVoid Online/SourcevoidOnline.exe"')
time.sleep(5)
pyautogui.click(857, 482)
keyboard.write(f"{seed}")
pyautogui.click(1112, 698)
runloop = 0
elif runloop != 1 and pyautogui.pixel(946, 1100) != (0, 0, 0):
restart()
while md == 1:
print(pyautogui.position())
while pd == 1:
if pyautogui.pixel(1029, 1388) != (0, 0, 0):
print(pyautogui.pixel(1179, 1388))```