Vlademon Posted February 12, 2010 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!!!
MHz Posted February 12, 2010 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
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