BlueForce Posted June 6, 2006 Share Posted June 6, 2006 when i hold down the left mouse button, it doesnt repeatedly click the click mouse button like i want it to. is this impossible or can it be done? here's the code im using: #include <Misc.au3> $dll = DllOpen("user32.dll") HotKeySet("{NUMPAD2}", "_Closing") Sleep(1000) While 1 If _IsPressed("01", $dll) Then MouseClick("left") EndIf WEnd DllClose($dll) Func _Closing() Exit EndFunc thanks for the help Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted June 6, 2006 Share Posted June 6, 2006 possibly ? #include <Misc.au3> HotKeySet("{NUMPAD2}", "_Closing") While 1 While _IsPressed("01") MsgBox(0,"asdf","asdf") MouseClick("left") WEnd WEnd Func _Closing() Exit EndFunc Link to comment Share on other sites More sharing options...
BlueForce Posted June 6, 2006 Author Share Posted June 6, 2006 all that does is make a msgbox pop up, i want it to repeatedly click the left mouse button if im holding it down. or can't this be achieved because of me holding down the left mouse button it can't send another signal saying press it? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted June 6, 2006 Share Posted June 6, 2006 (edited) EDITED : There try that is this working or not? it should work i tested it with just sending a key and it sent it pretty god damn fast #include <misc.au3> While 1 If _IsPressed('01') Then While _IsPressed('01') MouseClick("left") Wend EndIf Wend Edited June 6, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
BlueForce Posted June 6, 2006 Author Share Posted June 6, 2006 (edited) well you didnt need to make those changes, i made the appropriate changes but it still doesnt work like i want it to but im going to keep working at it for now. right now i am getting 2 shots for 1 mouse click which is better than 1 for 1 mouse click but what i want the finished product to be is like an autofire gun. ok latest changes and or ideas: but ill try yours to #include <Misc.au3> HotKeySet("{NUMPAD2}", "_Closing") While 1 While _IsPressed("02") MouseDown("left") Sleep(100) MouseUp("left") WEnd WEnd Func _Closing() Exit EndFunc i still have to try yours and i have a few more ideas to try and get this to work. ill see what i can do. Edited June 6, 2006 by BlueForce Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted June 6, 2006 Share Posted June 6, 2006 oops forgot the close function Hotkeyset("{Numpad2}","Close") #include <misc.au3> While 1 If _IsPressed('01') Then While _IsPressed('01') MouseClick("left") Wend EndIf Wend Func Close() Exit Endfunc Link to comment Share on other sites More sharing options...
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