在 Android 手机屏幕上点击指定坐标

使用 adb shell input tap 命令可以在 Android 手机屏幕上点击指定坐标。

示例:

点击屏幕坐标 (300, 500)

adb shell input tap 300 500

解释:

  • adb shell:进入 Android 设备的 shell 环境
  • input tap:模拟点击操作
  • 300 500:点击的坐标,x 坐标为 300,y 坐标为 500

注意:

  • 坐标系从屏幕左上角开始,x 坐标向右增加,y 坐标向下增加。
  • 坐标值需要根据设备屏幕分辨率进行调整。

示例:

在分辨率为 1080x1920 的设备上,点击屏幕中心位置

adb shell input tap 540 960

更多信息:

Android 手机屏幕点击坐标 - 使用 adb shell 命令

原文地址: https://www.cveoy.top/t/topic/jqg9 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录