Guest lanski Posted March 8, 2005 Share Posted March 8, 2005 I need to make a script.. to emulate left mouse clicks while I have the left mouse button down.. I want it to keep clicking every 93ms and then when i let go of it.. it will stop Sounds simple but I cant find a way to Do while MouseClick = Down or something.. I was going to try this While $i = 3 AutoItSetOption("MouseClickDelay", 93); MouseClick("left"); Wend and have it so when u press the mouse down it makes $i = 3; and if u let go of the mouse it changes it back to 0 Link to comment Share on other sites More sharing options...
Guest lanski Posted March 8, 2005 Share Posted March 8, 2005 HotKeySet(MouseDown("left"), "rapidFire") HotKeySet(MouseUp("left"), "stopIt") Dim $i Func stopIt() $i = 0 EndFunc Func rapidFire() $i = 3 EndFunc While $i >= 2 AutoItSetOption("MouseClickDelay", 93) MouseClick("left") WEnd This is what I tried nxt but it didnt even work.. Link to comment Share on other sites More sharing options...
Guest lanski Posted March 9, 2005 Share Posted March 9, 2005 guys I know im new at this but you dont have to out right ignore the post Link to comment Share on other sites More sharing options...
Guest lanski Posted March 9, 2005 Share Posted March 9, 2005 This has been asked before... you cannot simulate an action while that very action is enacted.while i hold the mouse button down I want the mouse button to come up... ummm then the mouse button is no longer down... Really, it is a horrible twilight zone moment to hope for such things.nobody ignored your post. we read it and became utterly confused trying to solve it...btw, I do not know what came first, the chicken OR the egg...Lar.<{POST_SNAPBACK}>Im glad u have a sense of humor.. Then is there a way to do it with a hotkey? because I still need a way to do it... Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 9, 2005 Share Posted March 9, 2005 (edited) Im glad u have a sense of humor.. Then is there a way to do it with a hotkey? because I still need a way to do it...<{POST_SNAPBACK}>I think you're looking at something like in CounterStrike syntax, "bind +key command(s)"+key activates the command(s) while the key is held... Try looking into the _ispressed UDF.BAH...you beat me to it, Larry. Edited March 9, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache 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