Forrest logo
back to the input tool

input:tldr:d39af

input: Send a swipe gesture to an Android device.
$ input swipe ${x_start} ${y_start} ${x_end} ${y_end} ${duration_in_ms}
try on your machine

The command "input swipe" is used in Android devices to simulate a swipe or a gesture on the screen. Here is an explanation of the command with its parameters:

  • ${x_start}: The X-coordinate of the starting point of the swipe. It represents the horizontal position on the screen where the swipe starts, measured in pixels.
  • ${y_start}: The Y-coordinate of the starting point of the swipe. It represents the vertical position on the screen where the swipe starts, measured in pixels.
  • ${x_end}: The X-coordinate of the ending point of the swipe. It represents the horizontal position on the screen where the swipe ends, measured in pixels.
  • ${y_end}: The Y-coordinate of the ending point of the swipe. It represents the vertical position on the screen where the swipe ends, measured in pixels.
  • ${duration_in_ms}: The duration of the swipe in milliseconds. It represents how long the swipe should take from the starting point to the ending point.

Together, these parameters define the starting and ending points of the swipe gesture, as well as the duration it should take. When executed, this command will simulate a swipe gesture on the specified Android device, moving from the starting point to the ending point with the defined duration.

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