Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

Interact touch

A decision block that simulate a touchscreen gesture.

The fiber will pause until the gesture has been fully simulated, or the gesture was cancelled.

The NO path is executed if the gesture failed to be dispatched, or was cancelled/interrupted.

Only use this block as a last resort if there’s no other way of performing the desired automation.

Depending on gesture the input arguments have different purpose:

  • Click, Long click, Double click: (X0,Y0) are used as click position.
  • Swipe: (X0,Y0) are used as start, and (X1,Y1) as end of swipe, with pointer moving at speed, default is 1000 dip/s.

To show the current touch/pointer location, for measuring screen positions, enable the Pointer location option in system Developer settings.

Use the App start or App in foreground block to ensure that the correct activity is shown on screen. A delay between sequential interactions may be needed to ensure the UI has been fully loaded and redrawn.

Note! This feature isn’t officially supported until Android 7, a rooted device is required on lower versions, may not work on all devices.

Input arguments

  • Action — touchscreen gesture to simulate, default Click.
  • Screen X0 — first horizontal screen position, in percent from left edge.
  • Screen Y0 — first vertical screen position, in percent from top edge.
  • Screen X1 — second horizontal screen position, in percent from left edge.
  • Screen Y1 — second vertical screen position, in percent from top edge.
  • Pointer speed — pointer speed, in DIP per second.
Note! This documentation is also accessible within the app from Help & feedback menu.