Jump to content

Recommended Posts

Posted

Basically, i want to know how to press DOWN and up mouse2 button. Not just press it, but hold it for some seconds.

Posted (edited)

Function Reference - MouseDown

--------------------------------------------------------------------------------

Perform a mouse down event at the current mouse position.

MouseDown ( "button" )

Parameters:

button mouse button, "left", "right", or "middle"

Return Value:

None.

Remarks:

See Remarks in MouseClick.

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

Related:

MouseClickDrag, MouseGetPos, MouseMove, MouseCoordMode (Option), MouseUp

Example:

MouseDown("left")
Sleep(100)
MouseUp("left")

EDIT: there was some1 faster then me hehe

Edited by Merlin
Posted

MouseDown("right")
Sleep(5000)
MouseUp("right")

This press the right button on the mouse for 5 seconds then releases.

Does this help you?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...