adb bat 执行滑动事件

chcp 65001
@echo off
echo 开始滑动
set str =0
:start
adb shell input swipe 100 150 100 100
choice /t 1 /d y /n >nul
set /a str+=1
cls
echo 滑动次数%str%
goto start

复制上边代码到记事本,修改后缀名为.bat, 双击打开执行,前提文件放到 adb目录,或者配置系统环境变量,另外,需要手机打开 开发者模式

猜你喜欢

转载自www.cnblogs.com/aikongmeng/p/10762037.html