haXor4life Posted January 6, 2010 Share Posted January 6, 2010 I can't do it, please help. I want when I press left mouse button to send infinite mouse clicks let's say each 1/3 second. And when I release it sending should stop. Help please. It's very hard for me. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 6, 2010 Share Posted January 6, 2010 (edited) You forgot to ask a question. Anyway, check While, MouseClick, and _IsPressed in the helpfile. Edited January 6, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
haXor4life Posted January 6, 2010 Author Share Posted January 6, 2010 (edited) #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("01", $dll) Then _IsPressed("01", $dll) ExitLoop EndIf WEnd DllClose($dll) It doesn't work Edited January 6, 2010 by haXor4life Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 6, 2010 Share Posted January 6, 2010 It would be more like this: #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep(333) If _IsPressed("05", $dll) Then MouseClick("left") ContinueLoop EndIf WEnd .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
haXor4life Posted January 6, 2010 Author Share Posted January 6, 2010 (edited) It would be more like this: #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep(333) If _IsPressed("05", $dll) Then MouseClick("left") ContinueLoop EndIf WEnd Kind sir it doesn't work. It seems to make one click after I press button but then stops. Edited January 6, 2010 by haXor4life Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 6, 2010 Share Posted January 6, 2010 Kind sir it doesn't work. It seems to make one click after I press button but then stops. Last try. #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep(333) If _IsPressed("01", $dll) Then MouseUp("left") MouseDown("left") ContinueLoop EndIf WEnd .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
haXor4life Posted January 6, 2010 Author Share Posted January 6, 2010 (edited) Last try. #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep(333) If _IsPressed("01", $dll) Then MouseUp("left") MouseDown("left") ContinueLoop EndIf WEnd Thank you, God. But it doesn't work in my gaem. I fixed it with this. MouseUp("left") Sleep (100) MouseDown("left") Edited January 6, 2010 by haXor4life 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