Ejemplo n.º 1
0
def START():
    resX, resY = gui.size()

    gui.moveTo(resX - 30, resY / 2 - 20)
    gui.click()
    sleep(0.5)
    down(RESTART)
    up(RESTART)
Ejemplo n.º 2
0
        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]))
Ejemplo n.º 3
0
def END():
    up(RESTART)
    up(JUMP)
    up(SHOOT)
    up(RIGHT)
    up(LEFT)
Ejemplo n.º 4
0
def right(x):
    down(RIGHT)
    sleep(x)
    up(RIGHT)
Ejemplo n.º 5
0
def left(x):
    down(LEFT)
    sleep(x)
    up(LEFT)
Ejemplo n.º 6
0
#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()