input Command Examples

Send event codes or touchscreen gestures to an Android device. This command can only be used through adb shell. More information: https://developer.android.com/reference/android/view/KeyEvent.html#constants_1.

input keyevent {{event_code}}

input text "{{text}}"

input tap {{x_position}} {{y_position}}

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

input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{duration_in_ms}}