Sign in to follow this  
Followers 0
DarkBlood

event: check if MouseUp has been pressed

3 posts in this topic

I want to do a script that when you hold down right click will be send U infinite times until you free the right click.

how can autoit do to listening a mouseup or mousedown event?

;)

#include <Misc.au3>
$dll = DllOpen("user32.dll")


While 1
Sleep(100)

If _IsPressed("02", $dll) Then ;right click = 02
While 1
Send("{u}")
Wend
Endif

WEnd

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

oh my god! is very simple

THANK YOU Larry ;)!!!

Edited by DarkBlood

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