]> git.somenet.org - pub/jan/scripts.git/blob - ingress_item_recycle.sh
intress autorecharger fixed convert usage of srgba
[pub/jan/scripts.git] / ingress_item_recycle.sh
1 #!/bin/bash
2
3 RECYCLE_ITEMCOUNT=$1
4
5 # expectation: inventory is in most safe mode, first recycle-item selected.
6 # repeat for all items
7 for item in `seq 1 1 $RECYCLE_ITEMCOUNT` ; do
8   echo "recycling item: $item"
9   ~/Android/Sdk/platform-tools/adb shell input touchscreen tap 550 900  # click item
10   ~/Android/Sdk/platform-tools/adb shell input touchscreen tap 950 1850 # click "recycle"
11   ~/Android/Sdk/platform-tools/adb shell input touchscreen tap 650 1850 # click "confirm"
12   #~/Android/Sdk/platform-tools/adb shell input keyevent KEYCODE_BACK # skip animation
13   sleep 1
14 done
15