Vlademon Posted February 12, 2010 Share Posted February 12, 2010 I have a very easy script but it is not work ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: RunWait('alcohol.exe /s') ControlClick('Installer Language','Please select a language','Button1') ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: The first command is OK, but the second command is not work (no mistake in debug window). Help!!! Link to comment Share on other sites More sharing options...
MHz Posted February 12, 2010 Share Posted February 12, 2010 (edited) Use WinWait() in you case. RunWait() waits until the process ends so it is no good for automation of the process. Use Run() instead and use ProcessWaitClose() to wait for finish if needed. ; use Run() to continue with script $pid = Run('alcohol.exe /s') ; use WinWait to stop script until using Control* functions WinWait('Installer Language', 'Please select a language') ; click on Button1 with the specified window ControlClick('Installer Language', 'Please select a language', 'Button1') ; wait until ProcessID form Run() has closed ProcessWaitClose($pid) Edit: Assuming silent install switch is not so silent. Edited February 12, 2010 by MHz Link to comment Share on other sites More sharing options...
Vlademon Posted February 12, 2010 Author Share Posted February 12, 2010 MHz Thank you! All working! 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