echo "times=$times,suc=$suc,err=$err"
简单版本:
#!/bin/shread -p "input run times:" timesecho "times=$times"for loop in {0..10000};doif [ $loop == $times ];thenecho "break"breakfiadb shell input tap 1100 352sleep 0.5adb shell input tap 165 727done
#!/bin/shread -p "input run times:" timesecho "times=$times"for loop in {0..100000};doif [ $loop == $times ];thenecho "break"breakfistime=$[$RANDOM%1001]*1000 stime表示微秒,这里代表从0-1秒之间取值echo "stime=$stime"adb shell input tap 968 96usleep stime ——usleep代表微妙adb shell input tap 73 721done
新闻热点
疑难解答