advance Posted April 17, 2005 Posted April 17, 2005 HotKeySet("+{TAB}", "start") $a = 0 func start() HotkeySet("+{TAB}", "stop") $a = 1 do MouseClick ( "left" ) until $a = 0 endfunc func stop() HotkeySet("+{TAB}", "start") $a = 0 do sleep(100) until $a = 1 endfunc worked great until i tried it again today. what the hell is wrong?
Developers Jos Posted April 17, 2005 Developers Posted April 17, 2005 worked great until i tried it again today. what the hell is wrong?<{POST_SNAPBACK}>Guess it finishes right away ?all it does is $A = 0 and then the script ends..... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
advance Posted April 17, 2005 Author Posted April 17, 2005 im going for it to start and stop when i press shift tab..
Developers Jos Posted April 17, 2005 Developers Posted April 17, 2005 im going for it to start and stop when i press shift tab..<{POST_SNAPBACK}>well then you want to either do Start() or Stop() after the $a = 0 line to put your program in one of these 2 loop....... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
advance Posted April 17, 2005 Author Posted April 17, 2005 If I did $a = 0 do sleep until $a = 1 ;rest of scipt would that be better? (im testing it now)
advance Posted April 17, 2005 Author Posted April 17, 2005 Ah that did it. I guess my family decided to try to help me and took a part out. Thanks
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