Jump to content
Sign in to follow this  
Chobyhy

Help with Autoit

Recommended Posts

Chobyhy

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

Share this post


Link to post
Share on other sites
Jabberwock

$x = 0

If $x = 0 Then

MsgBox(4096, "Rawr!", "Rawr", 0)

$x = 1

EndIf

?


Share this post


Link to post
Share on other sites
Chobyhy

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

Share this post


Link to post
Share on other sites
Jabberwock

can you post your code? or pm me, i can take a look mabye help you better then


Share this post


Link to post
Share on other sites
jvanegmond

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×