Jump to content

Problem with a same windows ....


Recommended Posts

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.

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

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