Created
June 8, 2017 01:43
-
-
Save mido3ds/e6db658ffe94fbf47ffb30ca16bcd901 to your computer and use it in GitHub Desktop.
generate infinite touches at android device using monkeyrunner api, useful for cheating in games ;)
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
print 'importing libraries..' | |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
print 'waiting for connection...' | |
device = MonkeyRunner.waitForConnection() | |
pos = (500, 1000) | |
print 'touching at ', pos | |
while True: | |
device.touch(pos[0], pos[1], 'DOWN_AND_UP') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment