我是靠谱客的博主 贤惠小蝴蝶,这篇文章主要介绍android adb sendevent 模拟点击,现在分享给大家,希望可以做个参考。

  如在屏幕的x坐标为40,y坐标为210的点上touch一下,命令如下

  adb shell sendevent /dev/input/event0 3 0 40
  adb shell sendevent /dev/input/event0 3 1 210
   
  adb shell sendevent /dev/input/event0 1 330 1 //touch
  adb shell sendevent /dev/input/event0 0 0 0       //it must have
   
  adb shell sendevent /dev/input/event0 1 330 0 //untouch
  adb shell sendevent /dev/input/event0 0 0 0 //it must have

  注:以上六组命令必须配合使用,缺一不可

最后

以上就是贤惠小蝴蝶最近收集整理的关于android adb sendevent 模拟点击的全部内容,更多相关android内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(110)

评论列表共有 0 条评论

立即
投稿
返回
顶部