Scott A Posted February 20, 2006 Share Posted February 20, 2006 I am having a little trouble. When I run a script, it will start and work part way but then won't finish. I found out if I start the script but cancel the program installation (which leaves the autoit icon in my system tray) and run the script again, it will complete the entire script. It seems to work as long as there is another previous unfinished script in my system tray but will not work if there isn't. I can't understand why this isn't working. Below is a copy of my script: RunWait("I:\scott-test\common\statgraphics714.exe") WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "WARNING: This program is protected by copyright law and international treaties.") Send("!n") WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "License Agreement") Send("!a") Send("!n") WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Customer Information") Send("Information Services") Send("!o") Send("OSk") Send("!s") Send("!n") WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Destination Folder") Send("!n") WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Setup Type") Send("!t") Send("!n") WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Ready to Install the Program") Send("!i") WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "InstallShield Wizard Completed") Send("!f") Link to comment Share on other sites More sharing options...
Valuater Posted February 20, 2006 Share Posted February 20, 2006 (edited) first you had "RunWait" autoit WAITS for that window to close before continuing second autoit is very FAST... so i slowed it down third put your code in code boxes like this [ code ] ; no spaces ; paste your code [ /code ] ; no spaces fourth try this..... expandcollapse popupDim $wait= "500" Run("I:\scott-test\common\statgraphics714.exe") Sleep($wait) WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "WARNING: This program is protected by copyright law and international treaties.") Sleep($wait) Send("!n") Sleep($wait) WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "License Agreement") Sleep($wait) Send("!a") Sleep($wait) Send("!n") Sleep($wait) WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Customer Information") Sleep($wait) Send("Information Services") Sleep($wait) Send("!o") Sleep($wait) Send("OSk") Sleep($wait) Send("!s") Sleep($wait) Send("!n") Sleep($wait) WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Destination Folder") Sleep($wait) Send("!n") Sleep($wait) WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Setup Type") Sleep($wait) Send("!t") Sleep($wait) Send("!n") Sleep($wait) WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "Ready to Install the Program") Sleep($wait) Send("!i") Sleep($wait) WinWaitActive("STATGRAPHICS Centurion XV - InstallShield Wizard", "InstallShield Wizard Completed") Sleep($wait) Send("!f") 8) BTW Welcome to the Forums!! Edited February 20, 2006 by Valuater 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