Jump to content
Sign in to follow this  
Efix

Problem with a same windows ....

Recommended Posts

Efix

Hi everyone,

i am tring to create a little АutoIt script to automaticly install Adobe Reader 9.1:

Run ( "Adobe Reader 9.1.exe" )

Sleep ( 60000 )

ControlClick ( "Adobe Reader 9.1 - Setup", "", "Button1" )

Sleep ( 2000 )

WinWaitActive ( "Adobe Reader 9.1 - Setup" )

ControlClick ( "Adobe Reader 9.1 - Setup", "", "Button1" )

Sleep ( 90000 )

WinWaitActive ( "Adobe Reader 9.1 - Setup" )

ControlClick ( "Adobe Reader 9.1 - Setup", "", "Button1" )

The instalation window is with one name *Adobe Reader 9.1 - Setup* and i must use the command Sleep to wait.

But the sleep time is different for every computer. So i don`t want to use the Sleep command.

How to denominate every single window with same name like the previous ?

:D

P.S. I never learned english in school, so pardon my English.

Share this post


Link to post
Share on other sites
KaFu

Share this post


Link to post
Share on other sites
Efix

Thank you very much. Da new code is:

Run ( "Adobe Reader 9.1.exe" )

WinWaitActive ( "Adobe Reader 9.1 - Setup", "Destination Folder" )

ControlClick ( "Adobe Reader 9.1 - Setup", "Next", "Button1" )

WinWaitActive ( "Adobe Reader 9.1 - Setup", "Ready to Install the Program" )

ControlClick ( "Adobe Reader 9.1 - Setup", "Install", "Button1" )

WinWaitActive ( "Adobe Reader 9.1 - Setup", "Setup Completed" )

ControlClick ( "Adobe Reader 9.1 - Setup", "Finish", "Button1" )

I miss that second parameter and you open my eyes. Thank you once again.

If i can help you with something please notify me.

:D

Edited by Efix

Share this post


Link to post
Share on other sites
KaFu

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.