电脑ADB调试手机

@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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一去二里地

从不会有人打赏的

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值