android - 向 adb shell 发送多个相同的按键事件?

标签 android adb

如何将多个按键事件发送到同一个按键的 adb shell?例如,您可以像这样发出一个“删除”键事件 (#67):

adb shell input keyevent 67

但是有这样的东西吗(注意:这行不通)?

adb shell input keyevent 67 67

最佳答案

尝试使用

adb shell "input keyevent 67 && input keyevent 67"

如果需要写大型脚本,也可以试试this approach .

关于android - 向 adb shell 发送多个相同的按键事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24070041/

相关文章:

android - 从与 SimpleCursorAdapter 绑定(bind)的 ListView 中获取所选项目

android - 在Android上检测wifi IP地址?

java - Mockito anyBoolean() 返回时匹配器异常

android - "adb install"返回错误 : protocol fault (no status)

android - AnimatedVectorDrawable 可绘制路径的空路径

android - SSL 过期的 DefaultHttpClient()

android - adb 更新非市场 apk?

android - 调试检测装置(ADB)不工作

android - 通过 adb shell 命令打开摄像机

android - 清除android应用程序用户数据