adb 模拟手机滑动事件

版权声明:本文为博主原创文章,可以随意自由转载传播,但请注明出处. https://blog.csdn.net/aikongmeng/article/details/89491686
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目录,或者配置系统环境变量,

另外,需要手机打开 开发者模式.

猜你喜欢

转载自blog.csdn.net/aikongmeng/article/details/89491686