ExtendedClick Method

Class

AnyWin class.

Action

Performs a click with one or more key modifiers.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

ExtendedClick (keyModifiers, iButton, x, y)
Variable Description
keyModifiers Defines which additional keys should be pressed while performing the click. MODIFIERKEYSTATE.
iButton Optional: The mouse button to press: Windows: 1 for left (default), 2 for right, and 3 for center. INTEGER.
x Optional: The horizontal coordinate (relative to the window) at which to click. If you specify x, you must also specify y. The default is 0 for a window, or the button center for a pushbutton. INTEGER.
y Optional: The vertical coordinate (relative to the window) at which to click. The default is 0 for a window, or the button center, for a pushbutton. INTEGER.

Example

The following example presses the "Ctrl" and the "Alt" key while performing a click.

MainWin.ExtendedClick(MOD_CTRL_ALT)