Example #1
0
def go_entrance():
    entrace_temp = util.read_template('templates', '2pick', 'entrance.png')
    useticket_temp = util.read_template('templates', '2pick', 'use_ticket.png')
    noticket_temp = util.read_template('templates', '2pick', 'no_tickets.png')
    while not util.check_existed(screenshotter, useticket_temp):
        util.find_and_click(screenshotter, entrace_temp)
        if util.check_existed(screenshotter, noticket_temp):
            return False
    return True
Example #2
0
def go_character():
    character_temp = util.read_template('templates', '2pick',
                                        'chose_character.png')
    chose_temp = util.read_template('templates', '2pick', 'chose.png')
    while not util.check_existed(screenshotter, chose_temp):
        util.find_and_click(screenshotter, character_temp, rel_h=1.5)
        time.sleep(1)
Example #3
0
def go_goback():
    goback_temp = util.read_template('templates', '2pick', 'goback.png')
    arena_temp = util.read_template('templates', '2pick', 'arena.png')
    while not util.check_existed(screenshotter, arena_temp):
        util.find_and_click(screenshotter, goback_temp)
Example #4
0
def go_giveup2():
    giveup2_temp = util.read_template('templates', '2pick', 'giveup2.png')
    goback_temp = util.read_template('templates', '2pick', 'goback.png')
    while not util.check_existed(screenshotter, goback_temp):
        util.find_and_click(screenshotter, giveup2_temp)
Example #5
0
def go_pickcard():
    pickcard_temp = util.read_template('templates', '2pick', 'pick_card.png')
    giveup_temp = util.read_template('templates', '2pick', 'giveup.png')
    while not util.check_existed(screenshotter, giveup_temp):
        util.find_and_click(screenshotter, pickcard_temp)
Example #6
0
def go_chose():
    chose_temp = util.read_template('templates', '2pick', 'chose.png')
    pickcard_temp = util.read_template('templates', '2pick', 'pick_card.png')
    while not util.check_existed(screenshotter, pickcard_temp):
        util.find_and_click(screenshotter, chose_temp)
Example #7
0
def go_getin():
    getin_temp = util.read_template('templates', '2pick', 'get_in.png')
    character_temp = util.read_template('templates', '2pick',
                                        'chose_character.png')
    while not util.check_existed(screenshotter, character_temp):
        util.find_and_click(screenshotter, getin_temp)
Example #8
0
def go_useticket():
    useticket_temp = util.read_template('templates', '2pick', 'use_ticket.png')
    getin_temp = util.read_template('templates', '2pick', 'get_in.png')
    while not util.check_existed(screenshotter, getin_temp):
        util.find_and_click(screenshotter, useticket_temp)
Example #9
0
def go_2pick():
    twopick_temp = util.read_template('templates', '2pick', '2pick.png')
    entrace_temp = util.read_template('templates', '2pick', 'entrance.png')
    while not util.check_existed(screenshotter, entrace_temp):
        util.find_and_click(screenshotter, twopick_temp)