Click Mouse Action Icon

Click Mouse Action

Declaration

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

See Also

 Move Mouse to Object, Move Mouse, Send Keystrokes, Press, Check

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

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 by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, a popup expression builder is available in all these fields by pressing F2.
More on variables...

More on expressions...

More on the expression builder...

Example

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