neous Posted January 5, 2007 Posted January 5, 2007 i'm trying to script the installation of visual studio 2005. i successfully launch the exe from its location. then the installation component gets loaded, that takes less than a minute but i think that's where my problem start because eventhough i added a sleep time to allow for the loading of the needed components to finish , when the it's done the "Next" button is enabled but can someone please tell me what i'm doing wrong? here is a sample of the code thanks Runwait("T:\Software\VSTS\Microsoft V.....) WinWaitActive("Microsoft Visual Studio 2005") send("{SPACE}") send("{SPACE}") send("{TAB}") send("{TAB}") sleep(120000) send("{Enter}")
AutoChris Posted January 5, 2007 Posted January 5, 2007 Rather than just putting Sleep() to wait for something to load, use WinWait() to wait for a particular window to load, including any unique text. Try to be as specific as possible for each window that loads to avoid any confusion as to which window you are waiting to load.
neous Posted January 5, 2007 Author Posted January 5, 2007 could i use winwait() even if it's the same window i.e. the only difference is that when the components are loaded the Next button is enabled? or should replace the winwaitactive with winwait?
seandisanti Posted January 5, 2007 Posted January 5, 2007 could i use winwait() even if it's the same window i.e. the only difference is that when the components are loaded the Next button is enabled? or should replace the winwaitactive with winwait?use controlcommand() with the "IsEnabled" option to check if the button is enabled. just do a little while loop that sleeps on each iteration, and exits once the control is enabled. you also may want to look into controlsend() and controlclick().
neous Posted January 7, 2007 Author Posted January 7, 2007 use controlcommand() with the "IsEnabled" option to check if the button is enabled. just do a little while loop that sleeps on each iteration, and exits once the control is enabled. you also may want to look into controlsend() and controlclick().Thanks i'll try that
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