Jump to content

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

Link to comment
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
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...