将多个相同的键事件发送到 adb shell? [英] Send multiple same keyevents to the adb shell?
本文介绍了将多个相同的键事件发送到 adb shell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何向同一个键的 adb shell 发送多个键事件?例如,您可以像这样发出一个删除"键事件(#67):
How can you send multiple key events to the adb shell of the same key? For example, you can issue one 'delete' key event (#67) like this:
adb shell input keyevent 67
但是有没有类似的东西(注意:这行不通)?
But is there something like this (note: this won't work)?
adb shell input keyevent 67 67
推荐答案
尝试使用
adb shell "input keyevent 67 && input keyevent 67"
如果需要写大脚本,也可以试试这种方法.
If you need to write large scripts, you can also try this approach.
这篇关于将多个相同的键事件发送到 adb shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文