Skip to content

Instantly share code, notes, and snippets.

@nghenglim
Created January 27, 2017 10:07
Show Gist options
  • Save nghenglim/b5b88977283c47306d88bda32d06fc17 to your computer and use it in GitHub Desktop.
Save nghenglim/b5b88977283c47306d88bda32d06fc17 to your computer and use it in GitHub Desktop.
beginner approach for autoclick android game
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
@nghenglim
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment