Function Reference


MouseUp

Perform a mouse up event at the current mouse position.

MouseUp ( "button" )

Parameters

button The button to click:
    $MOUSE_CLICK_RIGHT ("right")
    $MOUSE_CLICK_MIDDLE ("middle")
    $MOUSE_CLICK_MAIN ("main")
    $MOUSE_CLICK_MENU ("menu")
    $MOUSE_CLICK_PRIMARY ("primary")
    $MOUSE_CLICK_SECONDARY ("secondary")

Constants are defined in "AutoItConstants.au3".

Return Value

Success: 1.
Failure: 0, the button is not in the list.

Remarks

See MouseClick remarks.
User responsibility: For every MouseDown() there should eventually be a corresponding MouseUp() event.

Related

MouseClick, MouseClickDrag, MouseCoordMode (Option), MouseDown, MouseGetPos, MouseMove

Example

#include <AutoItConstants.au3>

MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down.
Sleep(100)
MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up.