![Forrest logo](/images/logo.png)
input:tldr:c0592
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.