本帖最后由 flashercs 于 2018-12-8 01:51 编辑
- set filename=D:\reboot.txt
- set cycle=5
- set movetime=5
- cd . > %filename%
- set /a i=1
- :loop2
- set /a j=1
- :loop1
- adb wait-for-device
- adb shell input swipe 222 110 15 110
- echo swipe %time% count %j% >> %filename%
- TIMEOUT /T 120 /NOBREAK
- set /a j+=1
- if %j% leq %movetime% goto loop1
- adb wait-for-device
- echo reboot %time% count %I% >> %filename%
- adb reboot
- TIMEOUT /T 120 /NOBREAK
- set /a i+=1
- if %i% leq %cycle% goto loop2
- pause
- exit /b
复制代码
|