Click Mouse Action

Declaration

<AMMOUSECLICK CLICK="text" BUTTON="text">

See Also

Click Mouse Action-Setting Properties, Move Mouse Action, Move Mouse to Object Action, Send Keystrokes Action

Description

Clicks the mouse according to the parameters you specify.

Practical Usage

The mouse action is only recommended for use if an application cannot be automated using the Send Keystrokes Action <AMSENDKEYS> or other, more reliable Interactivity actions. This would usually only occur if the external application that is being automated did not support standard Windows conventions such as accelerator keys or hot-keys. The reason for this, is that mouse movements and clicks are dependant on window positioning and screen resolution, whereas the Send Keystrokes Action <AMSENDKEYS> is not affected by this variable.

Parameters

Button

Required
MARKUP: BUTTON="center"

Specifies the type of click that should take place on the mouse.

The possible values are:

left: Click the left mouse button
center
: Click the center mouse button
right
: Click the right mouse button

Click

Required
MARKUP: CLICK="double"

Specifies the type of click that should take place on the mouse.

The available values are:

single: Single Click with the mouse button specified in the click parameter.

double: Double-click with the mouse button specified in the click parameter.

hold_down: Hold-down the mouse button specified in the click parameter.

release: Release the mouse button specified in the click parameter.

Notes

Custom Description

This action includes the Description tab for entering a custom step description.

More on setting custom step description

Standard Error Handling Options

This action also includes the standard Error Causes and On Error failure handling options/tabs.

More on Error Handling Options

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

<AMMOUSECLICK CLICK="double" BUTTON="center">