Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
generate infinite touches at android device using monkeyrunner api, useful for cheating in games ;)
print 'importing libraries..'
from 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
You can’t perform that action at this time.