By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

AutoIt MouseDown Function

The AutoIt MouseDown function is used to press down a mouse button.

Edited: 2015-02-13 00:01

The AutoIt MouseDown Function is used to perform a MouseDown event, which can later be released by a MouseUp event.

If you want to make a selection, or perform a mouse drag and drop operation, then consider using the MouseClickDrag Function instead.


This function only takes 1 parameter, being the button to press down.

left || right || middle || main || menu || primary || secondaryThe button to be pressed down.

AutoIt MouseDown Example

Sleep(1000) ; time to hold the button in milliseconds