input

將事件代碼或觸控螢幕手勢傳送到 Android 裝置。 此命令只能透過 adb shell 使用。 更多資訊:https://developer.android.com/reference/android/view/KeyEvent.html#constants_1.

input keyevent {{事件代碼}}

input text "{{文字}}"

input tap {{x 值}} {{y 值}}

input swipe {{x 開始值}} {{y 開始值}} {{x 結束值}} {{y 結束值}} {{持續時間(微秒)}}

input swipe {{x 值}} {{y 值}} {{x 值}} {{y 值}} {{持續時間(微秒)}}