Sign in to follow this  
Followers 0
Vlademon

Dont work "ControlClick'

3 posts in this topic

I have a very easy script but it is not work :mellow:

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

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!!!

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by MHz

Share this post


Link to post
Share on other sites

MHz

Thank you! All working!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0