Created
February 21, 2018 20:28
-
-
Save zbicin/7ec5139c64ae1da5f816002a198efe78 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| tap () | |
| { | |
| adb shell sendevent /dev/input/event1 3 57 9148 | |
| adb shell sendevent /dev/input/event1 3 53 $1 | |
| adb shell sendevent /dev/input/event1 3 54 $2 | |
| adb shell sendevent /dev/input/event1 3 58 54 | |
| adb shell sendevent /dev/input/event1 0 0 0 | |
| adb shell sendevent /dev/input/event1 3 57 -1 | |
| adb shell sendevent /dev/input/event1 0 0 0 | |
| } | |
| while true; do | |
| tap 500 600 | |
| tap 500 900 | |
| tap 500 1200 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment