benm Posted December 12, 2007 Share Posted December 12, 2007 Hi, I'm scripting an app installation and on one of the windows I have to choose the 2nd radio button. I tried this line: -------------------- WinWaitActive("InstallShield Wizard", "[CLASS:Button;TEXT:Floating: access licenses from remote server;INSTANCE:2]") WinWaitActive("InstallShield Wizard", "&Next") Send("{ENTER}") -------------------- but it doesn't seem to want to choose the button and move to the next screen. Would you kindly point me in the right direction? Thanks, Ben Link to comment Share on other sites More sharing options...
Skruge Posted December 12, 2007 Share Posted December 12, 2007 -------------------- WinWaitActive("InstallShield Wizard", "[CLASS:Button;TEXT:Floating: access licenses from remote server;INSTANCE:2]") WinWaitActive("InstallShield Wizard", "&Next") Send("{ENTER}") --------------------Couple of things to check here... Do you have two windows that both say "Floating: access licenses from remote server"? That's what it's looking for since you're using instance 2. Also, it's possible the windows exist but aren't active. Change WinWaitActive to WinWait, and do WinActivate before your Send. Ideally, you should get the control ID and use ControlClick... No activation required. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
benm Posted December 13, 2007 Author Share Posted December 13, 2007 Couple of things to check here... Do you have two windows that both say "Floating: access licenses from remote server"? That's what it's looking for since you're using instance 2. Also, it's possible the windows exist but aren't active. Change WinWaitActive to WinWait, and do WinActivate before your Send. Ideally, you should get the control ID and use ControlClick... No activation required. Thanks a lot! ControlClick("Window Name","Text",[iD:XXX]) did it very well! Thanks again, Ben Link to comment Share on other sites More sharing options...
rasim Posted December 14, 2007 Share Posted December 14, 2007 Better so: ControlClick("Window Name", "Text", "Button2") since "ID" changed every time. 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