Jump to content
Sign in to follow this  

Dont work "ControlClick'

Recommended Posts


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

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


Assuming silent install switch is not so silent.

Edited by MHz

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.