import os,time os.system("echo \"hello world\"") for i in range(1,10000): os.system("adb shell input swipe 300 800 900 900 500") print(i) time.sleep(0.5)