Sign in to follow this  
Followers 0
sbd

Help with pressing a button...

5 posts in this topic

Hi All,

I first searched the forums for a solution and have not found it or have not recognised it when I saw it, so I hope someone can help.

I have been using AutoIt for a few weeks now, making installers for some applications and have had success and fun in the process.

Then I ran into a problem that a novice like me has been unable to resolve.

I’m trying to click on a button, I know, sounds simple enough but I can’t for the life of me work it out.

The button is ‘Setup’ in the GUI of NOD32, there is no ALT shortcut for the button.

All the previous work I have done with AI has been with sending the command to the appropriate ALT shortcut.

Now that I have a button without an ALT shortcut I’m having trouble.

I have attached two screen grabs, one of the GUI in NOD32 I want to interact with and the other is the Window Info tool while the Finder Tool was hovering over the ‘Setup’ button that I want to click.

If someone could help me with what the line should look like I should be able to use the example to complete my project.

NOD32

Windows Info tool

If you require any more information please let me know.

Thanks for any assistance.

Share this post


Link to post
Share on other sites



Use:

ControlClick("<window title>", "<window text>", <button id>)

Just pull the info from the Window Info Tool.

Share this post


Link to post
Share on other sites

Thanks for your quick reply omikron48.

The buttons in this area of the GUI do not seem to have specific ID’s.

The whole area is ID 2 if you look at the screen grab.

I have been trying to use its coordinates but don’t know how to identify the area and the specific button.

Could you look at the second screen grab and tell me what the line should look like?

Thanks

Share this post


Link to post
Share on other sites

Hmm. Could be a bit difficult if the button isn't really a button or a standard control.

You could always try tabbing and using the arrow keys until you focus on the control you want. This method should work if you can get a good point of reference and the resulting movement is consistent and trackable.

Share this post


Link to post
Share on other sites

I tried to TAB around but there seems to be no keyboard interaction with the GUI.

thanks again

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