Efix Posted April 8, 2009 Share Posted April 8, 2009 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 ?P.S. I never learned english in school, so pardon my English. Link to comment Share on other sites More sharing options...
KaFu Posted April 8, 2009 Share Posted April 8, 2009 winwaitactive() s second parameter is "Text", use AU3Info tool to determine the text on the dialogs and add them respectivly. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Efix Posted April 8, 2009 Author Share Posted April 8, 2009 (edited) 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. Edited April 8, 2009 by Efix Link to comment Share on other sites More sharing options...
KaFu Posted April 8, 2009 Share Posted April 8, 2009 You're welcome, imho thats what this forum's for ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now