Sign in to follow this  
Followers 0
Stoner

Selection Buttons not marked

10 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Is it a proper control and can't you use ControlClick() ?

Just check with au3info.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

ControlClick() does not work for me, with the different screen resolutions the position of the button is always changing.

Share this post


Link to post
Share on other sites

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.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

It appears to be a java window with no controls on it.

Share this post


Link to post
Share on other sites

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 Info

Open the help file>Search tab> "Controls">View topic

This is the command you need, just research it out and you'll get it.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I also have a similar problem..somebody please suggest a solution...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0