前提:把BAT文件放到夜神模拟器的bin目录,或者cd %~dp0要写死路径
1、要进入夜神模拟器的bin目录
2、连接夜神模拟器
3、执行命令
cd %~dp0 nox_adb.exe connect 127.0.0.1:62001 ping -n 1 127.0.0.1>nul set num=0 :ok set /a num+=1 adb shell am start -n cn.wondershare.wsapp/cn.wondershare.wsapp.MainActivity ping -n 6 127.0.0.1>nul adb shell input swipe 476 1035 450 192 300 ping -n 3 127.0.0.1>nul adb shell input tap 532 1860 ping -n 3 127.0.0.1>nul adb shell am force-stop cn.wondershare.wsapp ping -n 3 127.0.0.1>nul if "%num%"=="50" pause goto ok