def START(): resX, resY = gui.size() gui.moveTo(resX - 30, resY / 2 - 20) gui.click() sleep(0.5) down(RESTART) up(RESTART)
elif "scroll down" in query: pg.scroll(-700) elif "print" in query: pg.hotkey("ctrl", "p") elif "customselect" in query: pg.hotkey("ctrl", "f2") elif "hold" in query: query = query.replace("hold", "") pg.down(query) elif "release" in query: query = query.replace("hold", "") pg.up(query) elif "addcursor" in query: pg.hotkey("shift", "alt", "i") elif "where are you" in query: pass elif "back" in query: pg.press("backspace") elif 'play music' in query: music_dir = 'D:\\music' songs = os.listdir(music_dir) print(songs) os.startfile(os.path.join(music_dir, songs[0]))
def END(): up(RESTART) up(JUMP) up(SHOOT) up(RIGHT) up(LEFT)
def right(x): down(RIGHT) sleep(x) up(RIGHT)
def left(x): down(LEFT) sleep(x) up(LEFT)
#starting area -> down # INIT FALL right(1.75) sleep(1.75) # DODGE RIGHT right(0.1) sleep(0.1) # DODGE LEFT left(0.03) # DODGE RIGHT #sleep(0.03) right(0.1) left(0.02) #down platform -> chest down(LEFT) down(JUMP) #sleep(0.02) up(JUMP) sleep(0.4) down(JUMP) # double reset get sleep(0.25) up(JUMP) up(LEFT) sleep(0.005) down(RIGHT) down(JUMP) sleep(1) END()