def start_hearthstone(): app.click_image(DATA_DIR + "hearthstone_icon.png") app.wait(10) app.click_image(DATA_DIR + "play_button.png") app.wait(25) app.ui.mouseclick(640, 540) app.wait(2)
def start(): app.open(APP_NAME) app.wait(5)
def stop_recording(): app.click_image(DATA_DIR + "app_icon.png") app.wait(1) app.click_image(DATA_DIR + "stop_recording.png") app.wait(2)
def start_recording(): app.click_image(DATA_DIR + "start_recording.png") app.wait(1)
def stop(): app.close(APP_NAME) app.wait(1)
def stop_hearthstone(): app.close("Hearthstone") app.wait(5)