Last active
December 30, 2015 13:58
-
-
Save ashishb/7838656 to your computer and use it in GitHub Desktop.
A small monkeyrunner script to automate "Tinder" likes
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
# Run this script using Monkeyrunner. | |
import commands | |
import time | |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
def click(device, x, y): | |
device.touch(x, y, MonkeyDevice.DOWN_AND_UP) | |
def main(): | |
device = MonkeyRunner.waitForConnection() | |
while True: | |
click(device, 800, 1600) | |
time.sleep(1) | |
if __name__ == '__main__': | |
main() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi Ashish, we are working one project which have same photo slider like Tinder. It is back office app we are looking for only photo slider/photo frame ... please let me know if you can help us.
Thanks & regards