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
新聞熱點
疑難解答