美文网首页
shell 命令模拟点击事件

shell 命令模拟点击事件

作者: zhangxuanchen | 来源:发表于2017-02-14 08:50 被阅读419次

转载:http://www.jianshu.com/p/c2120e27ee4c

模拟点击shell命令
连接adb后输入 adb shell input tap X坐标 Y坐标

左边 adb shell input tap 279 1897
右边 adb shell input tap 1085 1880
@echo off
set var=0
rem ************循环开始了
:continue
set /a var+=1
echo 第%var%次循环
adb shell input tap 279 1897
adb shell input tap 1085 1880
if %var% lss 0 goto continue
rem ************循环结束了
echo 循环执行完毕
pause

执行shell以后的命令
adb shell <123.txt

相关文章

网友评论

      本文标题:shell 命令模拟点击事件

      本文链接:https://www.haomeiwen.com/subject/bycxwttx.html