示例#1
0
文件: main.py 项目: congvd/autofo4
def do_step(step, callback = None):
    btn = get_btn(f'step_{step}')

    if btn:
        forcus_game()
        if callback:
            callback()
        else:
            click_btn(btn)
        logger.info(f'START STEP {step}')
示例#2
0
def detect_started_game():
    is_started = False

    while is_started == False:
        game_icon = get_btn('fo4')

        if game_icon:
            is_started = True

        click_btn(game_icon)

    return is_started


    
示例#3
0
文件: main.py 项目: congvd/autofo4
def forcus_game():
    in_game = get_btn('in_game')
    if in_game is None:
        click_btn(in_game)
示例#4
0
def do_go_game():
    game_fo4 = get_btn('game_fo4')
    click_btn(game_fo4)

    logger.info('GO FO4')
示例#5
0
def go_garena():
    garena = get_btn('garena')
    click_btn(garena)

    logger.info('GO GARENA')
示例#6
0
def play_game():
    play = get_btn('play')
    click_btn(play)

    logger.info('PLAY')