Click operations

Click operations are Interaction Expressions. Use them to perform different kind of clicks, drag & drop, or mouse over operations.

Click operations require the syntax {COMMAND}.

RPA Studio offers the following click operations:

Command

Result

CLICK

Left-click

ALTCLICK

Left-click while holding ALT

LALTCLICK

Left-click while holding the left ALT key

RALTCLICK

Left-click while holding the right ALT key

CTRLCLICK

Left-click while holding CTRL

LCTRLCLICK

Left-click while holding the left CTRL key

RCTRLCLICK

Left-click while holding the right CTRL key

SHIFTCLICK

Left-click while holding SHIFT

LSHIFTCLICK

Left-click while holding the left SHIFT key

RSHIFTCLICK

Left-click while holding the right SHIFT key

LONGCLICK

Left-click that lasts for two seconds

DOUBLECLICK

Double-click

RIGHTCLICK

Right-click

DRAG

Selects the object you want to reposition. This object must support drag and drop operations.

DROP

Drops the object you selected with {DRAG}.

MOUSEOVER

Moves the mouse pointer over the control.

If you want to left-click without using a mouse, enter the command X instead of CLICK. X also verifies whether or not the element you want to click is active.

Define the click position

The commands CLICK and LONGCLICK allow you to define a click position.

By default, Bots click into the center of a button. If you - for instance - want to open a drop-down menu, you can specify where the Bot should click.

To do so, define an offset in pixel or percent from the top left corner of the button: {COMMAND[OffsetHorizontal][OffsetVertical]}

  • Replace OffsetHorizontal with the required horizontal distance from the top left corner of the button.

  • Replace OffsetVertical with the required vertical distance from the top left corner of the button.

The following examples show how to define the click position.

The Step below defines an offset of 10px along the horizontal axis and 15px along the vertical axis:

Defined offset in pixels

The Step below defines an offset of 100% along the horizontal axis and 100% along the vertical axis. At run-time, the Bot clicks the bottom-right corner of the button.

Defined offset in percentage

Was this information helpful?

Tricentis RPA Studio Manual 2020.2 © Tricentis GmbH