下载adb工具包,解压即可
各种事件说明:
连接USB,设置手机开发者选项,安装手机助手
cmd进入的安装目录,执行以下命令
adb kill-server 关闭adb服务
adb start-server 开启adb服务
adb devices 查看连接的设备
滑动
1.命令:adb input swipe 600 800 300 800(向右滑动)
2.命令:adb input swipe 300 800 600 800(向左滑动)
3.命令:adb input swipe 300 80 300 800(向下滑动)
4.命令:adb input swipe 300 800 300 80(向上滑动)
5.命令:adb input swipe 300 800 300 80 1000(向上滑动1000)
点击
此x、y坐标对应的是真实的屏幕分辨率,所以要根据具体手机具体看,比如你想点击屏幕(x, y) = (250, 250)位置:
adb shell input tap 250 250
adb shell input tap 600 600 点击商家位置(mt)
adb shell input keyevent 4 返回键
cmd /c f:\adb\ shell input tap 500 500 运行cmd 执行指定文件夹下的命令
本文发布于:2024-02-05 00:28:22,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170719879861244.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |