Jump to content

capnmaximus

Members
  • Posts

    5
  • Joined

  • Last visited

capnmaximus's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. TheSaint: The script does not finish/exit just as you guessed but I'm not sure what exactly it's doing since it never detects the additional pop-ups/screens that come after the loop. Appreciate the suggestions, will look into adding If WinActive statements and see where it goes from there.
  2. Hello all, I have an installation script with a loop which waits for a window which takes a long time to appear... there are several other windows and pop ups after this screen which need buttons clicked, etc. The loop works great but as of now the script stops working as soon as the loop completes successfully... the script remains active but doesn't perform any of the commands after the loop. I'd like to know how to continue with the rest of the installation after the loop completes. Any ideas or suggestions would be greatly appreciated. Please find the code starting with the loop and the rest is what it's not being performed. ;; Wait for Installation to Complete and DBConfig Window to Appear: While 1 ; find control (Apply button) whose Text is Apply: $var = ControlGetText("Advantage Utility", "DB Configuration", "[Text:Apply]") If $var == "Apply" Then ; Activate the window WinActivate("Advantage Utility","DB Configuration") ; Activate and Click on Apply Send("{TAB 10}") Sleep(1000) Send("{ENTER}") ExitLoop EndIf Sleep(1000) WEnd ;; 2nd Pop-Up WinWait("Success","Configured successfully ") WinActivate("Success","Configured successfully ") Sleep(1000) Send("!Y") ;; 3rd Pop-Up WinWait("Message","Blank Database Installation Completed") WinActivate("Message","Blank Database Installation Completed") Sleep(1000) Send("{ENTER}") ;; Back to 1st Pop-Up WinWait("Advantage Utility","DB Configuration") WinActivate("Advantage Utility","DB Configuration") Sleep(1000) Send("{TAB}") Sleep(1000) Send("{ENTER}") ;; Final ADVANTAGE Install Screen WinWait("Advantage - InstallShield Wizard","The InstallShield Wizard has successfully ") WinWaitActive("Advantage - InstallShield Wizard","The InstallShield Wizard has successfully ") Sleep(1000) Send("{ENTER}") Exit
  3. jdelaney: How would I integrate the Control Handles into the script? For example, the script never reaches this dialog box: WinWait("Roxio Creator Starter Setup", "Setup Wizard Complet") WinActivate("Roxio Creator Starter Setup", "Setup Wizard Complet") WinWaitActive("Roxio Creator Starter Setup","Setup Wizard Complet") Send("!F") JLogan3o13: That switch works just fine... was able to install with a batch file. Aktonius: Something went wrong, it now stopped at the 2nd screen where the following keys need to be passed to it: Send("!A") Send("!N") Thanks again.
  4. Gentlemen, thank you very much for your suggestions and for taking the time to reply. I'll try them both just as a learning experience and will let you know how it goes.
  5. Hello gentlemen, I just got started with AutoIt so please forgive me if this is a dumb question. My background is more of DOS batch scripting but it has some limitations. Basically, the purpose of this script is to install Roxio. Everything works fine up until the point where the installation begins. It is at this point where the installer takes a while before it gets to the next screen where it says the installation finished successfully. The script acts as thought it times out waiting for the next screen to show up. WinWaitActive("Roxio Creator Starter Setup","Click Install to beg") Send("!I") Is there a command besides "WinWaitActive" to tell the script to wait for the next screen? Not sure if "SLeep" would work. Here's a copy of the script... and I thank you for your time. ; Run Roxio installer Run('C:TempRoxio12setup.exe') WinWaitActive("Roxio Creator Starter Setup","Welcome to the Setup") Send("!N") WinWaitActive("Roxio Creator Starter Setup","I &accept the terms ") Send("!A") Send("!N") WinWaitActive("Roxio Creator Starter Setup","&I will participate ") Send("!N") WinWaitActive("Roxio Creator Starter Setup","&Enter the install l") Send("!N") WinWaitActive("Roxio Creator Starter Setup","Click Install to beg") Send("!I") WinWaitActive("Roxio Creator Starter Setup","Setup Wizard Complet") Send("!F") WinWaitActive("Roxio Creator Starter","You must restart you") Send("!N") $SF_1 = "setup.exe" If WinExists ( $SF_1 ) Then Exit AutoItWinSetTitle ( $SF_1) Roxio.au3
×
×
  • Create New...