keilamym 1 Report post 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. Share this post Link to post Share on other sites
Jonniemac315 0 Report post 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? Share this post Link to post Share on other sites
keilamym 1 Report post 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... Share this post Link to post Share on other sites
weaponx 10 Report post Posted September 5, 2007 You'll just have to use Run() and then sleep() until your desired timeout. Share this post Link to post Share on other sites
keilamym 1 Report post Posted September 5, 2007 darn.... thanks... Share this post Link to post Share on other sites
PsaltyDS 27 Report post 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 Share this post Link to post Share on other sites
weaponx 10 Report post 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 Share this post Link to post Share on other sites