keilamym Posted September 5, 2007 Share Posted September 5, 2007 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. Link to comment Share on other sites More sharing options...
Jonniemac315 Posted September 5, 2007 Share Posted September 5, 2007 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? Link to comment Share on other sites More sharing options...
keilamym Posted September 5, 2007 Author Share Posted September 5, 2007 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... Link to comment Share on other sites More sharing options...
weaponx Posted September 5, 2007 Share Posted September 5, 2007 You'll just have to use Run() and then sleep() until your desired timeout. Link to comment Share on other sites More sharing options...
keilamym Posted September 5, 2007 Author Share Posted September 5, 2007 darn.... thanks... Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 5, 2007 Share Posted September 5, 2007 (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 September 5, 2007 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 Link to comment Share on other sites More sharing options...
weaponx Posted September 6, 2007 Share Posted September 6, 2007 You can get the exit code from Run() using the _ProcessGet UDF.This UDF is impossible to find but I posted it here: http://www.autoitscript.com/forum/index.ph...p;hl=processget 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