@echo off
echo 唤起屏幕
adb shell input keyevent 26
call :setDelay 4
echo 模拟人手滑动
adb shell input swipe 350 1550 300 100
call :setDelay 2
echo 输入密码
call :passwdin
echo 查看USB调试设备
adb devices
echo 关闭北森
adb shell am force-stop com.beisen.italent
call :setDelay 2
echo 启动闭北森,并打开首页界面
adb shell am start -n com.beisen.italent/com.beisen.hybrid.platform.simple.SplashActivity
call :setDelay 15
echo 签到
adb shell input tap 100 450
call :setDelay 4
echo 点击签到
adb shell input tap 510 1800
call :setDelay 5
echo 截图
adb shell screencap -p /sdcard/01.png
echo 获取截图到桌面
adb pull /sdcard/01.png C://Users/Administrator/Desktop
::防止窗口一闪而过
pause
:: 下方为被调函数
:setDelay
echo 请等待耐心。。。
ping /n %1 127.0.0.1 >nul
goto :eof
:passwdin
echo 调用密码输入程序
call :clickone 505 1670
call :clickone 230 1470
call :clickone 780 1670
call :clickone 505 1170
call :clickone 780 1670
call :clickone 505 1670
goto :eof
:clickone
adb shell input tap %1 %2
call :setDelay 1
goto :eof
电脑ADB调试手机
最新推荐文章于 2024-08-06 10:55:51 发布