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

Learn more

AutoIt MouseUp Function

The MouseUp function of AutoIt is used to release a button that has already been pressed down.

Edited: 2015-02-13 00:00

The AutoIt MouseUp Function is used to perform a MouseUp event at the current pointer position.

The MouseUp function should be used to release a button that has already been pressed, usually by using the MouseDown function.

Parameters

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

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

AutoIt MouseUp Example

MouseDown("secondary")
Sleep(1000) ; time to hold the button in milliseconds
MouseUp("secondary")