Skip to main content

DoubleLeftClick

Double click the left mouse button at the center of the automation control, or relative to the center of the control.

void DoubleLeftClick();
void DoubleLeftClick(int moveRight, int moveDown);

Parameters

moveRight: The number of pixels to move the cursor to the right of the center point of the control

moveDown: The number of pixels to move the cursor down from the center point of the control.

Return Value

None

Remarks

The delay between each single click is set by the Mouse.ClickPause. The default is 10ms.

The delay following the second click Mouse.DoubleClickPause. The default is 500ms.

The moveRight and moveDown parameters can be negative.

Example

AutomationControl auControl = desktop.FindControl("myIcon");
auControl.DoubleLeftClick();