Chobyhy Posted September 21, 2006 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
Jabberwock Posted September 21, 2006 Posted September 21, 2006 $x = 0 If $x = 0 Then MsgBox(4096, "Rawr!", "Rawr", 0) $x = 1 EndIf ?
Chobyhy Posted September 21, 2006 Author 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
Jabberwock Posted September 21, 2006 Posted September 21, 2006 can you post your code? or pm me, i can take a look mabye help you better then
jvanegmond Posted September 21, 2006 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
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