Jump to content
Sign in to follow this  

To get window info about a button

Recommended Posts


I have a window with a group of radio buttons and buttons named "OK"

and "Cancel". When I used AutoItWindowInfo to find the

class/instance/text of that "OK" button, it displays the info of that

window. For all buttons, and radio buttons, it displays the same

class/instance of that window. If I used,


means I can click the "OK" button.

I used controlclick function as given below:

controlclick("title of the window", "",


Is there any other way to get the name of the button or click the button?

Share this post

Link to post
Share on other sites

You'll get the same results trying to use AU3Info on an IE window. Browsers and other apps (i.e. Flash) that draw their own controls without using the standard Windows APIs simply can't be manipulated by control ID/handles.

Mozilla Firefox (and Thunderbird, etc.) do not expose a COM API the way MS IE does. Microsoft sees exposing those interfaces as expedient/convenient, Mozilla sees them as a security risk. They each have their own way of looking at it.

If they are HTML buttons and controls you are trying to work with, you could try using IE and scripting it with the IE.au3 UDF.


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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