3 # This script does clicking action automatically
4 # We just need to set up the timer duration
13 # Range of random number (in seconds)
17 for ((i=$BEGIN; i<=$END; i+=$INC));
21 #./adb shell getevent -l - use this command to get the position
23 #./adb -s "$DEVICE" shell input tap 500 1500
25 #./adb -s "$DEVICE" shell input tap 1002 913
27 #./adb -s "$DEVICE" shell input tap 994 560
29 #./adb -s "$DEVICE" shell input tap 987 346
30 # D-Link motion sensor
31 #./adb -s "$DEVICE" shell input tap 975 840
33 #./adb -s "$DEVICE" shell input tap 921 1188
34 #./adb -s "$DEVICE" shell input tap 533 653
35 # WeMo, WeMo Insight, LiFX bulbs, Hue bulbs with ST-app
36 #./adb -s "$DEVICE" shell input tap 533 653
38 #./adb -s "$DEVICE" shell input tap 981 532
40 #./adb -s "$DEVICE" shell input tap 981 326
45 # ./adb -s "$DEVICE" shell input tap 153 1211
48 # ./adb -s "$DEVICE" shell input tap 520 1211
51 #./adb -s "$DEVICE" shell input tap 923 383
53 #./adb -s "$DEVICE" shell input tap 506 580
58 # ./adb -s "$DEVICE" shell input tap 92 139
59 # ./adb -s "$DEVICE" shell input tap 92 139
61 # stop live view (go to playback)
62 # ./adb -s "$DEVICE" shell input tap 92 139
63 # ./adb -s "$DEVICE" shell input tap 92 250
69 #./adb -s "$DEVICE" shell input tap 532 740
70 # ./adb -s "$DEVICE" shell input tap 533 653
73 #./adb -s "$DEVICE" shell input tap 101 1012
74 # ./adb -s "$DEVICE" shell input tap 533 653
75 # ./adb -s "$DEVICE" shell input tap 533 653
76 # ./adb -s "$DEVICE" shell input tap 533 653
78 # Blossom - turning on/off 1 zone
82 # ./adb -s "$DEVICE" shell input tap 538 1597
85 # ./adb -s "$DEVICE" shell input tap 496 1533
87 # Blossom - change mode active/hibernate
88 #./adb -s "$DEVICE" shell input tap 1002 1176
90 #./adb -s "$DEVICE" shell input tap 994 802
95 # ./adb -s "$DEVICE" shell input tap 524 1668
96 # ./adb -s "$DEVICE" shell input tap 936 1709
99 # ./adb -s "$DEVICE" shell input tap 524 1668
100 # ./adb -s "$DEVICE" shell input tap 679 1702
105 # Using Google Translate and
106 # having her speak to Alexa
108 # ./adb -s "$DEVICE" shell input tap 907 145
109 # ./adb -s "$DEVICE" shell input tap 543 692
110 # ./adb -s "$DEVICE" shell input tap 148 775
113 # ./adb -s "$DEVICE" shell input tap 907 145
114 # ./adb -s "$DEVICE" shell input tap 463 1668
115 # ./adb -s "$DEVICE" shell input tap 148 775
118 #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA]
119 #RAND=$[`jot -r 1 $RAN_STA $RAN_END`]
120 #echo "Delay: $RAND seconds"
123 # TP-Link bulb - change colors & intensity
126 # color 1 - horizontal
127 #./adb -s "$DEVICE" shell input tap 250 1000
129 #./adb -s "$DEVICE" shell input tap 500 1250
131 ./adb -s "$DEVICE" shell input tap 150 1405
133 # color 2 - horizontal
134 #./adb -s "$DEVICE" shell input tap 750 1000
136 #./adb -s "$DEVICE" shell input tap 500 750
138 ./adb -s "$DEVICE" shell input tap 950 1405
140 # Hue bulb - change intensity
143 # intensity change (bright)
144 # ./adb -s "$DEVICE" shell input tap 300 550
146 # intensity change (dimmed)
147 # ./adb -s "$DEVICE" shell input tap 800 550
149 # Arlo camera - arm/disarm
153 # ./adb -s "$DEVICE" shell input tap 500 500
156 # ./adb -s "$DEVICE" shell input tap 500 750
158 # Arlo camera - record
159 #./adb -s "$DEVICE" shell input tap 515 923
160 #./adb -s "$DEVICE" shell input tap 524 883
161 # Arlo camera - sound (on/off)
162 #./adb -s "$DEVICE" shell input tap 70 850
163 # Nest thermostat mode change (heat/cool)
167 # ./adb -s "$DEVICE" shell input tap 110 1700
168 # ./adb -s "$DEVICE" shell input tap 110 1600
171 # ./adb -s "$DEVICE" shell input tap 110 1700
172 # ./adb -s "$DEVICE" shell input tap 110 1700
174 # Nest thermostat mode change (start/stop eco mode)
175 #./adb -s "$DEVICE" shell input tap 350 1700
176 #./adb -s "$DEVICE" shell input tap 350 1600
177 # Sengled bulb - ON/OFF
178 #./adb -s "$DEVICE" shell input tap 550 800
179 # Sengled bulb - intensity
183 # ./adb -s "$DEVICE" shell input tap 70 1150
186 # ./adb -s "$DEVICE" shell input tap 1020 1150
188 # Rachio sprinkler - ON/OFF
192 # ./adb -s "$DEVICE" shell input tap 900 1500
193 # ./adb -s "$DEVICE" shell input tap 300 600
194 # ./adb -s "$DEVICE" shell input tap 800 1700
195 # ./adb -s "$DEVICE" shell input tap 800 1700
198 # ./adb -s "$DEVICE" shell input tap 920 1650
200 # Rachio sprinkler - standby/active
204 # ./adb -s "$DEVICE" shell input tap 700 700
205 # ./adb -s "$DEVICE" shell input tap 700 1100
208 # ./adb -s "$DEVICE" shell input tap 600 700
210 # Ring doorbell - ring alerts
211 #./adb -s "$DEVICE" shell input tap 1000 570
212 # Ring doorbell - motion alerts
213 #./adb -s "$DEVICE" shell input tap 1000 750
214 # Ecobee thermostat - ON/OFF
218 # ./adb -s "$DEVICE" shell input tap 550 550
221 # ./adb -s "$DEVICE" shell input tap 550 650
223 # Ecobee thermostat - fan ON/Auto
227 # ./adb -s "$DEVICE" shell input tap 900 650
230 # ./adb -s "$DEVICE" shell input tap 700 650
232 # Nest camera - ON/OFF
233 #./adb -s "$DEVICE" shell input tap 1020 320
234 # Nest camera - Audio Talk/Done
235 #./adb -s "$DEVICE" shell input tap 550 1650
236 # Nest camera - Mic ON/OFF
237 #./adb -s "$DEVICE" shell input tap 1020 630
242 # ./adb -s "$DEVICE" shell input tap 550 950
245 # ./adb -s "$DEVICE" shell input tap 550 950
246 # sleep 1s # need a short sleep here
247 # ./adb -s "$DEVICE" shell input tap 550 1600
248 # sleep 1s # need a short sleep here
249 # ./adb -s "$DEVICE" shell input tap 550 950
251 # Amazon plug - ON/OFF
252 #./adb -s "$DEVICE" shell input tap 550 700
253 # Ring Alarm - Arm/Disarm
257 # ./adb -s "$DEVICE" shell input tap 850 350
260 # ./adb -s "$DEVICE" shell input tap 300 350
263 # pick a prime number > 120 seconds
267 #ssh root@192.168.1.1 "kill -9 21280 21287"