Created
January 27, 2017 10:07
-
-
Save nghenglim/b5b88977283c47306d88bda32d06fc17 to your computer and use it in GitHub Desktop.
beginner approach for autoclick android game
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
count=0 | |
while [ 1 ]; do | |
position_x=$(shuf -i 300-700 -n 1) | |
position_y=$(shuf -i 600-900 -n 1) | |
adb shell input tap $position_x $position_y | |
count=$((count+1)) | |
echo $count | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the time interval per click for this script is about 1 click/sec,
not very good this script, however it can run with only: 1. shell, 2. adb