Guest aryanez Posted March 18, 2004 Share Posted March 18, 2004 I'm writing my first script to automate an installation for my company, but I need to relinquish control of the install for the user to input data and then trigger the script to continue once they're done. I'm sure that greater minds have already done it, just need some guidance. Thanks Link to comment Share on other sites More sharing options...
jpm Posted March 18, 2004 Share Posted March 18, 2004 (edited) I'm writing my first script to automate an installation for my company, but I need to relinquish control of the install for the user to input data and then trigger the script to continue once they're done. I'm sure that greater minds have already done it, just need some guidance. ThanksWelcome on board,You can start the installer by Run( WinWaitActive( Send WinWaitActive( have the user input by InputBox(that the basic you need to learnHave a look to example which have been installGood learning Edited March 18, 2004 by jpm Link to comment Share on other sites More sharing options...
Guest aryanez Posted March 18, 2004 Share Posted March 18, 2004 I've got the script written upto the point to where the user needs to fill out their extension number as part of the install. I even have the InputBox appearing, but I need the value typed into the input box to be passed to the setup program. Link to comment Share on other sites More sharing options...
jpm Posted March 18, 2004 Share Posted March 18, 2004 I've got the script written upto the point to where the user needs to fill out their extension number as part of the install. I even have the InputBox appearing, but I need the value typed into the input box to be passed to the setup program. $string=inputbox(WinActivate( ...installer windowSend($string ... can be more complicated if you need to change to the specific field you want to set.Send(@TAB & $string ...does that help? Link to comment Share on other sites More sharing options...
Helge Posted March 19, 2004 Share Posted March 19, 2004 can be more complicated if you need to change to the specific field you want to set. Send(@TAB & $string ...Why not use ControlSend instead of Send ? ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window") Link to comment Share on other sites More sharing options...
jpm Posted March 19, 2004 Share Posted March 19, 2004 Why not use ControlSend instead of Send ? ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window") I knew that there will be a remark but I was afraid to explain this new dimension for a newbie (sorry aryanez) In fact in wanted to answer fast so it can have a first guidance and do his own research in the doc. But you are right just explain him the control numbering/ AutoIt Spy ... 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