Stoner Posted August 7, 2008 Share Posted August 7, 2008 I am trying to automate a script to install a program, everything is working well however there is a license window that has an "Accept" and "Decline" buttons. There no indications of names on these buttons, and since I will be installing on many systems, and they will all have different resolutions, I need a reliable way to select the button. I have used the ({TAB 4}) and that doesn't always work for me. Any suggestions. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 7, 2008 Developers Share Posted August 7, 2008 (edited) Is it a proper control and can't you use ControlClick() ? Just check with au3info. Jos Edited August 7, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Stoner Posted August 7, 2008 Author Share Posted August 7, 2008 ControlClick() does not work for me, with the different screen resolutions the position of the button is always changing. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 7, 2008 Developers Share Posted August 7, 2008 ControlClick() does not work for me, with the different screen resolutions the position of the button is always changing.There is no relation between ControlClick() and resolutions. MouseClick() would have that problem.Just read the info in the helpfile. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Stoner Posted August 7, 2008 Author Share Posted August 7, 2008 It appears to be a java window with no controls on it. Link to comment Share on other sites More sharing options...
Szhlopp Posted August 7, 2008 Share Posted August 7, 2008 It appears to be a java window with no controls on it.ControlClick is the best bet. As Jos said,StartMenu>Program Files>Autoit>AutoIt Window InfoOpen the help file>Search tab> "Controls">View topicThis is the command you need, just research it out and you'll get it. RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
Stoner Posted August 7, 2008 Author Share Posted August 7, 2008 I know that I seem to be just not getting it, however even with the info tool running when I mouse over the accept button, I get no information concerning the button I need to click. I understand about the info that I am trying to get, I use it on every other window with the winwaitactive command, and it works great. This window is totally anonymous. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 8, 2008 Developers Share Posted August 8, 2008 (edited) ControlClick is the best bet. As Jos said,No, as the OP state, the control isn't a standard one.I know that I seem to be just not getting it, however even with the info tool running when I mouse over the accept button, I get no information concerning the button I need to click. I understand about the info that I am trying to get, I use it on every other window with the winwaitactive command, and it works great. This window is totally anonymous.Is there anything you can do with the Keyboard? I remember solving something similar ones using the Send() command.Jos Edited August 8, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
venkatb Posted August 8, 2008 Share Posted August 8, 2008 I also have a similar problem..somebody please suggest a solution... Link to comment Share on other sites More sharing options...
Stoner Posted August 8, 2008 Author Share Posted August 8, 2008 I have tried all the normal hot keys and none of them work. I can use the Tab then Space, but for some reason it isn't reliable. 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