Method MouseDown

AutoIt X

Method Reference


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

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

Example


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

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