3 # This script does clicking action automatically
4 # We just need to set up the timer duration
7 # $1 : device identification (run "adb devices" to figure out)
10 # ./clickers.sh <device-identification>
19 # Range of random number (in seconds)
23 for ((i=$BEGIN; i<=$END; i+=$INC));
27 #./adb -s "$DEVICE" shell getevent -l - use this command to get the position
29 #./adb -s "$DEVICE" shell input tap 500 1500
31 #./adb -s "$DEVICE" shell input tap 1002 913
33 #./adb -s "$DEVICE" shell input tap 994 560
35 #./adb -s "$DEVICE" shell input tap 987 346
36 # D-Link motion sensor
37 #./adb -s "$DEVICE" shell input tap 975 840
39 #./adb -s "$DEVICE" shell input tap 921 1188
40 #./adb -s "$DEVICE" shell input tap 533 653
41 # WeMo, WeMo Insight, LiFX bulbs, Hue bulbs with ST-app
42 ./adb -s "$DEVICE" shell input tap 533 653
44 #./adb -s "$DEVICE" shell input tap 981 532
46 #./adb -s "$DEVICE" shell input tap 981 326
51 # ./adb -s "$DEVICE" shell input tap 153 1211
54 # ./adb -s "$DEVICE" shell input tap 520 1211
57 #./adb -s "$DEVICE" shell input tap 923 383
59 #./adb -s "$DEVICE" shell input tap 506 580
64 # ./adb -s "$DEVICE" shell input tap 92 139
65 # ./adb -s "$DEVICE" shell input tap 92 139
67 # stop live view (go to playback)
68 # ./adb -s "$DEVICE" shell input tap 92 139
69 # ./adb -s "$DEVICE" shell input tap 92 250
75 #./adb -s "$DEVICE" shell input tap 532 740
76 # ./adb -s "$DEVICE" shell input tap 533 653
79 #./adb -s "$DEVICE" shell input tap 101 1012
80 # ./adb -s "$DEVICE" shell input tap 533 653
81 # ./adb -s "$DEVICE" shell input tap 533 653
82 # ./adb -s "$DEVICE" shell input tap 533 653
88 # ./adb -s "$DEVICE" shell input tap 538 1597
91 # ./adb -s "$DEVICE" shell input tap 496 1533
94 #./adb -s "$DEVICE" shell input tap 994 802
99 # ./adb -s "$DEVICE" shell input tap 524 1668
100 # ./adb -s "$DEVICE" shell input tap 936 1709
103 # ./adb -s "$DEVICE" shell input tap 524 1668
104 # ./adb -s "$DEVICE" shell input tap 679 1702
109 # Using Google Translate and
110 # having her speak to Alexa
112 # ./adb -s "$DEVICE" shell input tap 907 145
113 # ./adb -s "$DEVICE" shell input tap 543 692
114 # ./adb -s "$DEVICE" shell input tap 148 775
117 # ./adb -s "$DEVICE" shell input tap 907 145
118 # ./adb -s "$DEVICE" shell input tap 463 1668
119 # ./adb -s "$DEVICE" shell input tap 148 775
122 #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA]
123 #RAND=$[`jot -r 1 $RAN_STA $RAN_END`]
124 #echo "Delay: $RAND seconds"
127 # TP-Link bulb - change colors
130 # color 1 - horizontal
131 #./adb -s "$DEVICE" shell input tap 250 1000
133 # ./adb -s "$DEVICE" shell input tap 500 1250
135 # color 2 - horizontal
136 #./adb -s "$DEVICE" shell input tap 750 1000
138 # ./adb -s "$DEVICE" shell input tap 500 750
141 # pick a prime number > 120 seconds