Toysrme Posted August 7, 2009 Posted August 7, 2009 Im wanting to try AutoIt out after doing alot of Autohotkey playing because it seems abit slicker. Ive written several rapid fire (rapid mouse click) macros in autohotkey, but am having problems in autoit! In autohotkey I can have the primary mouse button activate/deactivate a loop that pushes the left mouse button down & up. Works perfectly. In AutoIt, When you have a button the same as the one used in a looping macro, it just keeps looping because it's looking for any button event and not what the user's input is. It simply sees that the input is cycling & not what the user himself is doing. Ive searched and have not found an answer on this forum about it other than "its not possible". Which... Is highly annoying as not only is it possible in Autohotkey, it works correctly by default. :\
WannaLearnPls Posted August 8, 2009 Posted August 8, 2009 so, to sum up, you want to trigger a function when you click your mouse, and stop it when you click again?
Hawkwing Posted August 8, 2009 Posted August 8, 2009 But he runs into a problem when the function sends a mouseclick. Kind of like a hotkey loop. You set a hotkey, and the function it triggers sends that key. To avoid this, you have to unset the hotkey at the start of the funcion and then reset it at the end. Unfortunately, that doesn't help him very much, he just needs a way to distinguish between an autoit mouseclick and when you actually click the mouse. The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.
WannaLearnPls Posted August 8, 2009 Posted August 8, 2009 If so, I guess he could add another HotKey to go into a function, and then use a loop with _IsPressed(), to know when to start the autoclicking, and viceversa.. and then another HotKey to stop him from being on these function?
bogQ Posted August 8, 2009 Posted August 8, 2009 (edited) on one case or another, if 'hotkey' func did not help 'if' '_ispressed' 'then' 'do' 'untill' 'not' '_ispressed' probably will work #Include <Misc.au3> $x = 0 While 1 If _IsPressed("01") Then Do ToolTip($x) $x += 1 Until not _IsPressed("01") EndIf WEnd Edited August 8, 2009 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.
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