Jump to content

AutoIt Window Info does not differenciate the Controls of a software

Recommended Posts




I'm starting a script in AutoIT to automize a task in a software. I need to click a several Controls
I'm just starting to learn AutoIT, and discovered that we can use the Window Info tool (au3info) to identify controls precisely and targetting safely a specific button.
However, when I try it, I realize that most of the controls in my toolbar have the same Control Info (No ID, same class, same instance, ...). The only thing that changes is the ControlClicks Coord but I don't think that it's interesting, I don't see the difference with the Mouse Coordinates. Besides, I was aiming to write a stable script that would work even if the button changes a little bit of place for example. 

Should I use another tool that Window Info tool to detect this Controls ? Is there another way to identify a Control ? 

Thank you in advance for your help


Share this post

Link to post
Share on other sites


You need to give us more informations about what you are trying to do: which software? what au3info shows exactly? what's the exact goal of your script?

Put some screenshots if possible :)


Share this post

Link to post
Share on other sites

Sorry for the late reply. Thank you junkew for your answer, i'm gonna study this. 

@Neutro : For example, on Windows 10, when I try to select the buttom chrome on the toolbar, here is what I have in the control section of Au3Info  :
 Class : MSTaskListWXlass 
Instance : 1 
ClassnameNN : MSTasklistWClass1
Advanced Mode : [CLASS : MSTaskListWClass; INSTANCE:1] 
Text                        Application in execution 
Position                                 ...
Size                                        ...
ControlClick Coords            ...
Style                                       0x...
ExStyle                                   ...
Handle                                   0x...  

And I get that for any button on the toolbar (World, Outlook, ...). That's why it seems unefficient to me, am I wrong ? Is there an info here that could allow me to use ControlClick to select the Chrome button ? 
By the way, I know that I could do that with a simple Run. It is just for the exemple. 

I just discovered Control Viewer, I think I'm gonna try it. Maybe it will be easier to use than Au3Info


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

  • Similar Content

    • Rammanan
      By Rammanan
      Hi all, Below is my script,
      Pls advise me if any wrong on that....File exit in location but the return -1.
      FileOpen($file, 0)
         $line = FileReadLine($file)
      Local $aArray = _FileListToArrayRec($serverpath, "*|*.txt", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_SORT, $FLTAR_NOPATH)
      If @error Then
              MsgBox($MB_SYSTEMMODAL, "Ooops!", "No files found")
          ;_ArrayDisplay($aArray, "Sorted tree")
                 Local $hSearch = FileFindFirstFile($line)
    • JNutt
      By JNutt
      I'm trying ot use controlClick to click on button. So I'm using the Window Info Finder tool. But I noticed that the control ID in windowInfo changes each time I restart the app.  
      Am I doing this wrong.
    • Theodoor
      By Theodoor
      I am trying to use the ControlClick in a "save as"-window to select the path of where to save the document.
      I found out that when in press the icon in front of the path, i select the path. So I am trying to press that button (i have attached a print screen of this window).
      While trying to figure out how i had to use the ControlClick, it said somewhere that i could us Au3Info to find out what title,... i should use with the ControlClick.
      The result of the Au3Info I have attached aswel.
      The ControlClick that i tried are these: (and none of these even move the mouse)
      ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "", "Left" ,1 ,10,10)
      ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "1001", "Left" ,1 ,10,10)
      ControlClick("[CLASS:ToolbarWindow32]", "", "", "Left" ,1 ,10,10)
      ControlClick("Save project as", "", "", "Left" ,1 ,10,10)
      I don't know what I am doing wrong.
      Should I use a controlID? is my windowtitle wrong?
      Can anyone help me?
      Thanks in advance,


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.