input

将事件代码或触摸屏手势发送到 Android 设备。 此命令只能通过 adb shell 使用。 更多信息:https://developer.android.com/reference/android/view/KeyEvent.html#constants_1.

input keyevent {{event_code}}

input text "{{text}}"

input tap {{x_pos}} {{y_pos}}

input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}

input swipe {{x_pos}} {{y_pos}} {{x_pos}} {{y_pos}} {{duration_in_ms}}