Sign in to follow this  
Followers 0
ReaM

Mouse2 HOLD - How?

5 posts in this topic

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

Share this post


Link to post
Share on other sites



#3 ·  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

Share this post


Link to post
Share on other sites

there was some1 faster then me hehe

:)

:)

Share this post


Link to post
Share on other sites

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

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

Does this help you?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0