大佬们,求教一个bat命令

查看 41|回复 1
作者:15806329413   
adb -s 192.168.1.12:5555 shell input keyevent 82
adb -s 192.168.1.12:5555  shell cmd vibrator vibrate 3000
adb -s 192.168.1.15:5555 shell input keyevent 82
adb -s 192.168.1.15:5555  shell cmd vibrator vibrate 3000
adb -s 192.168.1.17:5555 shell input keyevent 82
adb -s 192.168.1.17:5555  shell cmd vibrator vibrate 3000
adb -s 192.168.1.14:5555 shell input keyevent 82
adb -s 192.168.1.14:5555  shell cmd vibrator vibrate 3000
大佬们,求一个bat脚本,循环运行上边这几段代码(还会增加,我照着例子写进去),间隔20秒循环一轮
谢谢大佬

大佬们, 大佬

blindcat   

@echo off
set devices=192.168.1.12:5555 192.168.1.15:5555 192.168.1.17:5555 192.168.1.14:5555
:loop
for %%d in (%devices%) do (
    adb -s %%d shell input keyevent 82
    adb -s %%d shell cmd vibrator vibrate 3000
)
timeout /t 20 /nobreak >nul
goto loop
您需要登录后才可以回帖 登录 | 立即注册

返回顶部