Forrest logo
back to the input tool

input:tldr:c0592

input: Send a single tap to an Android device.
$ input tap ${x_position} ${y_position}
try on your machine

The command "input tap" is an Android shell command used to simulate a tap on the touchscreen of an Android device. It is commonly used in automation scripts or when interacting with an Android device programmatically.

The command takes two parameters: ${x_position} and ${y_position}. These parameters represent the x and y coordinates of the location on the touchscreen where you want the tap event to occur. The coordinates are specified in pixels, with (0,0) representing the top-left corner of the screen.

For example, if you want to simulate a tap at the coordinates (200, 300) on the screen, you would use the command:

input tap 200 300

The command will emulate a touch event at the specified coordinates, triggering any action associated with a tap event at that location, such as opening an app, pressing a button, or selecting a menu option.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the input tool