SCREEN Drag image to point function

The SCREEN Drag image to point function in RPA.

Help CentreBuilding Processes

This article describes the RPA Screen functionality to drag an image to a specified point.

For a full list of available functions, please read SCREEN functions.


Description

The SCREEN Drag image to point function finds an image on the screen and drags it to the specified destination coordinates.


Setting it up

To use the SCREEN Drag image to point function, follow these instructions:

{{popups:rpas/add:action=screen-drag-to}}

Once on a process map:

  1. Navigate to the process where you would like to add the SCREEN Drag image to point function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the SCREEN Drag image to point option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Image pathYesText-The file path to the reference image to drag
Destination XYesNumber-The horizontal coordinate to drag the image to
Destination YYesNumber-The vertical coordinate to drag the image to
ConfidenceNoNumber (0.0-1.0)0.9The minimum confidence threshold for a match
DurationNoNumber (seconds)0.5The duration of the drag animation
VariableNoTextlocationThe variable name to store the source location

Output variables

The {location} variable contains an object with the source location properties: x, y, width, height, center_x, center_y.


Errors

ErrorDescription
Image not found on screenThe specified image could not be found on the screen

Tips

  • Use a higher duration value for smoother, more reliable drag operations
  • Combine with screen-find to get the destination coordinates dynamically

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.