Sign in to follow this  
Followers 0
keilamym

RunWait

7 posts in this topic

This should be a quick question... When I use WinWait, I can put a timeout code to wait, and continue the script... Is there a way to use a timeout code on RunWait... Right now I'm using the RunWait function a the @Sw_Hide flag.

Any assistance would be appreciated.

Share this post


Link to post
Share on other sites



This should be a quick question... When I use WinWait, I can put a timeout code to wait, and continue the script... Is there a way to use a timeout code on RunWait... Right now I'm using the RunWait function a the @Sw_Hide flag.

Any assistance would be appreciated.

Would Sleep work?

Share this post


Link to post
Share on other sites

Would Sleep work?

yeah... i was hoping not to use it because i'm trying to speed up my script but it doesn't look like i'm going to have a choice...

Share this post


Link to post
Share on other sites

You'll just have to use Run() and then sleep() until your desired timeout.

Share this post


Link to post
Share on other sites

darn....

thanks...

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

This should be a quick question... When I use WinWait, I can put a timeout code to wait, and continue the script... Is there a way to use a timeout code on RunWait... Right now I'm using the RunWait function a the @Sw_Hide flag.

Any assistance would be appreciated.

Do you have to retrieve the Return Code on exit? If not, go ahead and use Run() and your script can go on and do other things while an AdLibEnable function checks on the status of the process periodically. That function can timeout as required.

If you must get the exit code from what you are running, then I think you are stuck with WinWait().

;)

Edit: Typos... this keyboard can't type worth a darn... :)

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  
Followers 0