ADB:获取坐标

命令:

java 复制代码
adb shell getevent | grep -e "0035" -e "0036"
adb shell getevent -l | grep -e "0035" -e "0036"	这一条正确,但是,grep给过滤了,导致没有输出
getevent -c 10 //输出10条信息后退出
adb shell getevent -l  //将type、code、value以对应的常量名称显示

输入命令后,点击屏幕,即可得到如下图输出。

输出的四列值,对应的含义:

设备名: 事件type 事件code 事件value

不带-l参数:

带-l参数:

上面输出的坐标以16进制的形式显示,所以,要转换成10进制才能使用
在线进制转换

点击命令:

java 复制代码
adb shell input tap 1000 1000

参考:https://blog.csdn.net/fxdaniel/article/details/45846333

相关推荐
timeDifference₇9 小时前
Python Vibe Coding实操实验报告
开发语言·jvm·python
geovindu9 小时前
python:DecisionTree
开发语言·后端·python·算法
怒放的生命199111 小时前
代码知识库 RAG 问答系统 —— 从 0 到 1 实现教程
python·状态模式·fastapi·全栈开发·ai agent应用开发
geovindu11 小时前
python: Decision Tree Regressor
开发语言·后端·python·算法·决策树
fengkai454512 小时前
Python运维
运维·python·监控·psutil·ipy
Fancy.76112 小时前
:Python条件与循环语句学习总结
python
Wellijohn14 小时前
Python 容器选型实测:list.insert(0) 慢 925 倍,in 慢 6000 倍
python
新*14 小时前
标题全变成一级?靠编号规律找回章节边界
python·正则表达式·pdf解析·文本处理
高洁0116 小时前
多源数据融合:把零散信号拼成一致图景
人工智能·python·机器学习·transformer·迁移学习
郝学胜-神的一滴17 小时前
Effective Python 条款41:试Mix‑In组合式开发
开发语言·pytorch·python·pycharm·numpy