Skip to content

Instantly share code, notes, and snippets.

@mido3ds
Created June 8, 2017 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mido3ds/e6db658ffe94fbf47ffb30ca16bcd901 to your computer and use it in GitHub Desktop.
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 ;)
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