vrocco Posted May 6, 2011 Share Posted May 6, 2011 Please take a look at the attached screen shot. I am trying to script an install to automatically click the proper controls. On this page you must agree to the first section then the second becomes active and you must agree to the second. However, both "accept" controls have the same Control ID. My question is how do I use ControlClick to click one and then the other? Can it be done by ClassNameNN? Thanks for the help.license.bmp Link to comment Share on other sites More sharing options...
Bert Posted May 6, 2011 Share Posted May 6, 2011 have you looked at using command line switches to do the install? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
JohnOne Posted May 6, 2011 Share Posted May 6, 2011 And are you 100% certain that they are the same instance of the control? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
vrocco Posted May 6, 2011 Author Share Posted May 6, 2011 I don't think there are command line switches to install/accept agreement. If there are, I can't find anything about them in the install documentation. Using the AutoIt Info tool, they show the exact same Control ID and are located in the same window (same visible text and everything) They have different ClassNameNN but I don't see where ControlClick supports that. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 6, 2011 Moderators Share Posted May 6, 2011 (edited) http://www.google.com/search?q=vzaccess+manager+silent+install http://vzame.blogspot.com/ Pretty straight forward. No messing with controls, and would be a 1 liner using RunWait() or ShellExecuteWait() ( assuming you want to wait until it's done to do anything else ). Edit: They have different ClassNameNN but I don't see where ControlClick supports that. ControlClick("title or handle to window", "text in window [optional]", "ClassNameNN or ControlID") Edited May 6, 2011 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
vrocco Posted May 6, 2011 Author Share Posted May 6, 2011 Got it. Thank you for the help. 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