Method Reference (COM)

MouseDown

Perform a mouse down event at the current mouse position.

MouseDown "button"

 

Parameters

button The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".

 

Return Value

None.

 

Remarks

MouseClick.
Use responsibly: For every MouseDown there should eventually be a corresponding MouseUp event.

 

Related

MouseUp, MouseClick, MouseClickDrag, MouseGetPosX, MouseGetPosY, MouseMove, MouseCoordMode (Option)

 

Example

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")

oAutoIt.MouseDown "left"
oAutoIt.Sleep 100
oAutoIt.MouseUp "left"