es976 Posted November 12, 2007 Share Posted November 12, 2007 For some reason I can not get the first window in the install process to activate. Am I doing something wrong or is there a better way to write the script. I have 5 setup.exe that I am scripting. Sometimes the first one works the the other 4 fail. Here's my script: Break(0) ;Disable break SplashTextOn ("RM Easiteach Content Installation Script", "The Math Content is Being Installed. Please Wait.", 350, 30,-1,-1,-1,"","10","") AutoItSetOption("SendKeyDelay", 100) AutoItSetOption("WinWaitDelay",2000) FileChangeDir("V:\Support\RMEasiTeach\math") Run("\Support\RMEasiTeach\math\Setup.exe") WinWait("Easiteach North American Math Content - InstallShield Wizard", "&Next >") WinWaitActive("Easiteach North American Math Content - InstallShield Wizard", "&Next >") WinActive("Easiteach North American Math Content - InstallShield Wizard") Send("{N}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{Space}") Send("{N}") Send("{DOWN}") Send("{DOWN}") Send("{TAB}") Send("{N}") Send("{I}") WinWait("Easiteach North American Math Content - InstallShield Wizard","Finish") Send("{ENTER}") SplashOff() MsgBox(0, "RM Easiteach Content Installation Script", "The MATH Content has Successfully Completed.") Link to comment Share on other sites More sharing options...
Nahuel Posted November 12, 2007 Share Posted November 12, 2007 WinWaitActive("Easiteach North American Math Content - InstallShield Wizard", "&Next >") WinActive("Easiteach North American Math Content - InstallShield Wizard")So.. you are waiting for a window to become active and then activate it? Try it this way:WinActive("Easiteach North American Math Content - InstallShield Wizard") WinWaitActive("Easiteach North American Math Content - InstallShield Wizard", "&Next >") 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