Chobyhy Posted September 21, 2006 Share Posted September 21, 2006 How do you disable a part of your script after being disabled? There are some commands outside of While 1 And WEnd that needs to be disabled after the first execution. All it does is version check then i want it disabled so it doesnt use the sleep time because right now the delay of the commands in While 1 and WEnd is very slow although the sleeptime is set 100 miliseconds Link to comment Share on other sites More sharing options...
Jabberwock Posted September 21, 2006 Share Posted September 21, 2006 $x = 0 If $x = 0 Then MsgBox(4096, "Rawr!", "Rawr", 0) $x = 1 EndIf ? Link to comment Share on other sites More sharing options...
Chobyhy Posted September 21, 2006 Author Share Posted September 21, 2006 i have it set like that right now but still getting the delay for the while. I think even thought x = 1 the autoit keeps checking for the If $x = 0 statement. Idk, just getting a delay which i need to get rid of Link to comment Share on other sites More sharing options...
Jabberwock Posted September 21, 2006 Share Posted September 21, 2006 can you post your code? or pm me, i can take a look mabye help you better then Link to comment Share on other sites More sharing options...
jvanegmond Posted September 21, 2006 Share Posted September 21, 2006 It is not possible to 'disable' a part of a script. However, using a If-then-else-endif command is not a great speed penalty. github.com/jvanegmond 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