ExtendedDoubleClick Method

Class

AnyWin class.

Action

Performs a double-click with one or more key modifiers.

Availability

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

Syntax

ExtendedDoubleClick (keyModifiers, iButton, x, y)
Variable Description
keyModifiers Defines which additional keys should be pressed while performing the double-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 double-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 double-click. The default is 0 for a window, or the button center, for a pushbutton. INTEGER.

Notes

ExtendedDoubleClick moves the mouse to the window and double-clicks the specified mouse button. ExtendedDoubleClick moves the mouse to the coordinates specified by x and y before performing the double-click. These coordinates are relative to the client area of the window (that is, the window's internal area, excluding its caption, menu bar, and border). If you do not specify coordinates, the double-click occurs in the upper-left corner (0, 0) of the client area of the window.

Example

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

MainWin.ExtendedDoubleClick(MOD_CTRL_ALT)