advance Posted April 17, 2005 Share 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? Link to comment Share on other sites More sharing options...
Developers Jos Posted April 17, 2005 Developers Share 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. Link to comment Share on other sites More sharing options...
advance Posted April 17, 2005 Author Share Posted April 17, 2005 im going for it to start and stop when i press shift tab.. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 17, 2005 Developers Share 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. Link to comment Share on other sites More sharing options...
advance Posted April 17, 2005 Author Share 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) Link to comment Share on other sites More sharing options...
advance Posted April 17, 2005 Author Share Posted April 17, 2005 Ah that did it. I guess my family decided to try to help me and took a part out. Thanks 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