Created
June 11, 2020 08:00
-
-
Save ayrusme/bbbc6bd456c4d3dd9e4217c7a894cb71 to your computer and use it in GitHub Desktop.
Art of War Legions Simulator for Pixel 2 XL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import time | |
while True: | |
subprocess.call("adb shell input tap 775 2385".split(" ")) # battle | |
time.sleep(2) # wait for ui to render | |
subprocess.call("adb shell input tap 775 2385".split(" ")) # continue | |
time.sleep(22) # wait for battle to end | |
subprocess.call("adb shell input tap 453 1872".split(" ")) # watch ad | |
time.sleep(30) # sleep 30 - ads might be 15 secs, so can save 15s per battle when ad is 15s TODO | |
subprocess.call("adb shell input tap 145 129".split(" ")) # close ad | |
time.sleep(2) # wait for ui to render | |
subprocess.call("adb shell input tap 1367 53".split(" ")) # close ad | |
# close ad twice since sometimes the close button is on left end or f | |
time.sleep(2) # wait for ui to render |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment