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}')
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
def forcus_game(): in_game = get_btn('in_game') if in_game is None: click_btn(in_game)
def do_go_game(): game_fo4 = get_btn('game_fo4') click_btn(game_fo4) logger.info('GO FO4')
def go_garena(): garena = get_btn('garena') click_btn(garena) logger.info('GO GARENA')
def play_game(): play = get_btn('play') click_btn(play) logger.info('PLAY')