Skip to content

Instantly share code, notes, and snippets.

@ibnux
Created August 8, 2016 01:25
Show Gist options
  • Save ibnux/dca0168adfec4e0d4ce40f1b9bfa4049 to your computer and use it in GitHub Desktop.
Save ibnux/dca0168adfec4e0d4ce40f1b9bfa4049 to your computer and use it in GitHub Desktop.
simple pokemon go bot for rooted android
#!/bin/bash
# set an infinite loop
echo "pokestop @ alun2 serang"
echo "10 seconds before started"
while :
do
echo "tap left pokestop x=200 y=800"
input touchscreen tap 200 800
echo "sleep 2 second"
sleep 2
echo "swipe from x=10 to x=700"
input touchscreen swipe 10 700 700 700
echo "sleep 1 second"
sleep 1
echo "swipe"
input touchscreen swipe 10 700 700 700
echo "sleep 1 second"
sleep 1
echo "swipe"
input touchscreen swipe 10 700 700 700
echo "sleep 1 second"
sleep 1
echo "escape"
input keyevent 111
echo "sleep 2 second"
sleep 2
echo "tap right pokestop at x=500 y=800"
input touchscreen tap 500 800
echo "sleep 2 second"
sleep 2
echo "swipe"
input touchscreen swipe 10 700 700 700
echo "sleep 1 second"
sleep 1
echo "swipe"
input touchscreen swipe 10 700 700 700
echo "sleep 1 second"
sleep 1
echo "swipe"
input touchscreen swipe 10 700 700 700
echo "sleep 1 second"
sleep 1
echo "escape"
input keyevent 111
echo "sleep 5 minutes 30 second"
sleep 330
done
@ibnux
Copy link
Author

ibnux commented Aug 8, 2016

Tap screen:
input touchscreen tap X Y

Swipe:
input touchscreen swipe fromX fromY toX toY

Input key:
input keyevent keycode
https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ESCAPE

Delay:
sleep second(s)

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