Click operations

Click operations must be indicated in curly brackets. By default, clicks are performed into the center of the respective control.

The following click operations are available:

Click operations

Click operation

Description

{ALTCLICK}

Performs a left click while holding the Alt key down

{CLICK}

Click with the left mouse button

{CONTROLCLICK}

Performs a left click while holding the Ctrl key down

{DOUBLECLICK}

Double click with the left mouse button

{DRAG}

This selects the object to be repositioned. The object in question must support drag and drop operations.

{DROP}

This inserts an object that was previously selected with {DRAG}.

{LONGCLICK}

Click with the left mouse button which lasts for two seconds

{MOUSEOVER}

Moves the mouse pointer over the control.

{RIGHTCLICK}

Click with the right mouse button

{SHIFTCLICK}

Performs a left click while holding the Shift key down.

You can use the value X instead of {CLICK} for left clicks. X instructs the system to perform a click without using the mouse and it verifies whether or not the control is disabled.

In this example, the START button is clicked.

Simple click on a button

Defining the click position for CLICK

You can define an offset for the click operations {CLICK} and {LONGCLICK}. The offset is defined in square brackets and specified in pixels px or in percent %.

Syntax:

{Click[OffsetHorizontal][OffsetVertical]}

The specification of Offsets is relative to the upper left border of the control area.

This example defines an offset of 10px along the horizontal axis and 10px along the vertical axis for performing a click onto the Next button:

Click on a button with defined offset in pixels

This example defines an offset of 100% along the horizontal axis and 100% along the vertical axis. The click is performed onto the bottom right border of the control area.

Click on the bottom right border of a button

Defining mouse movements and click positions

{Mouse} operations can be used to define click operations, mouse movements and offsets.

They are defined as follows:

Syntax:

{MOUSE[Action][MoveMethod][OffsetHorizontal][OffsetVertical]}

The parameter Action defines the click operation to be performed. The following click operations can be used as values:

Possible click operations for the parameter Action

Click operation

Description

{CLICK}

Click with the left mouse button

{DOUBLECLICK}

Double click with the left mouse button

{DRAG}

This selects the object to be repositioned. The object in question must support drag and drop operations.

{DROP}

This inserts an object that was previously selected with {DRAG}.

{LONGCLICK}

Click with the left mouse button which lasts for two seconds

{MOUSEOVER}

Moves the mouse pointer over the control.

{RIGHTCLICK}

Click with the right mouse button

The following values can be specified for the parameter MoveMethod:

Possible values for the parameter MoveMethod

Click operation

Description

Jump

The mouse pointer jumps directly to the clicked location.

Smooth

The mouse pointer moves smoothly towards the clicked location.

HorizontalFirst

The mouse pointer moves along the horizontal axis first.

VerticalFirst

The mouse pointer moves along the vertical axis first.

The offset parameters OffsetHorizontal and OffsetVertical are specified as described in chapter "Defining the click position for CLICK".

In this example, the system right-clicks onto the Option button by using an offset of 10% along the horizontal axis and 10% along the vertical axis:

Defining the click operation, the mouse movement and the click position

Use the {JUMPTO} operation

You can use the {JUMPTO} operation to make the mouse pointer jump to a specific location and perform a click operation.

To do so, use one of the following syntaxes:

Syntax:

{JUMPTO[Action]}

{JUMPTO[Action][OffsetHorizontal][OffsetVertical]}

The parameters Action, OffsetHorizontal and OffsetVertical are specified as described above for the {Mouse} operation.