=sinister= Posted June 1, 2008 Posted June 1, 2008 I know it is possible to tell if the user clicks the left mouse button, but is it possible to tell if the mouse is held down? What i'm trying to do is make a hotkey so that if the user holds down the left mouse button, it clicks it a bunch of times (Don't ask =P)
=sinister= Posted June 1, 2008 Author Posted June 1, 2008 _IsPressed what? There is no hexidecimal for "LeftMouseDown"
Drew Posted June 1, 2008 Posted June 1, 2008 Have it check if its down , and if it is than $time + 1 & sleep( 100 ) , make it keep checking , and when $time = your choice , than do "this" ( click a shitload ). and if its not down , than $time = 0 That way it "times" how long its down , and if its down for x amount of time , it will trigger this action. Idk... its just a theory I thought up while reading your post.
Paulie Posted June 1, 2008 Posted June 1, 2008 I know it is possible to tell if the user clicks the left mouse button, but is it possible to tell if the mouse is held down? What i'm trying to do is make a hotkey so that if the user holds down the left mouse button, it clicks it a bunch of times (Don't ask =P)I don't think that would work for the left mouse button. We can try it though it would look like this #Include <Misc.au3> While 1 If _IsPressed("01") then While _IsPressed("01") MouseClick("Left") Sleep(100);set so the script doesn't get confused, it still might though.... WEnd EndIf WEnd
=sinister= Posted June 1, 2008 Author Posted June 1, 2008 Paulie, I don't think the IF statement is neccessary, anyways it's still not working =\
Paulie Posted June 2, 2008 Posted June 2, 2008 Paulie, I don't think the IF statement is neccessary, anyways it's still not working =\change the _ispressed calls to "03" instead of "01" and it works.It just uses the middle mouse button as a hotkey.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now