roadrunner Posted February 8, 2004 Share Posted February 8, 2004 When I use runwait to stop the script from continuing after runnung a windows program ( just a patch program) it take about 8 second to continue to the next line on the script, which just opens a message box before continuing to install another update. I have run the patch program on it's own and it return straight away to windows, but when used through a script with runwait theres this big delay. Any idears runwait($drive &"\patch\update1.2\patch1_2.exe") msgbox(4096,"","now going to install 1.3 patch") runwait($drive &"\patch\update1.3\patch1_3.exe") Link to comment Share on other sites More sharing options...
Valik Posted February 8, 2004 Share Posted February 8, 2004 Just because the window or whatever disappears doesn't mean the process isn't running for a few seconds afterwards. AutoIt watches until that process exits before it continues from RunWait. Try running the patch manually and watch the processes in taskmgr or something and see if it exits when you think it should that way. Link to comment Share on other sites More sharing options...
roadrunner Posted February 8, 2004 Author Share Posted February 8, 2004 I've done what you said using windows task manager. when the patch file has finished, the process is remove straight away and when the script called the patch program with runwait ,the patch program finished and disappeared from windows task manageras before but the next line of the script again took about 8 seconds to start. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 8, 2004 Developers Share Posted February 8, 2004 mmmm .. strange... well if you can wait for the 8 secs you could do something like this... run($drive &"\patch\update1.2\patch1_2.exe") Sleep(2000); pause till process is started ProcessWait ("patch1_2.exe") msgbox(4096,"","now going to install 1.3 patch") runwait($drive &"\patch\update1.3\patch1_3.exe") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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