Jump to content

"Read a Toolbar"


Go to solution Solved by 0xdefea7,

Recommended Posts

  • Solution

ZSbUUHw.png

That is a picture to show the tool and what I mean in the comment. Here is the code so you can copy:

#include <GUIToolbar.au3>

$hwnd = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "[CLASS:ToolbarWindow32;INSTANCE:1]")
$CMDiD = _GUICtrlToolbar_IndexToCommand($hwnd, 2)             ;This index on the info tool is 0 based, so under "Index" column, I read 3, not 2
$sText = _GUICtrlToolbar_GetButtonText($hwnd, $CMDiD)
MsgBox(0, "dsa", $sText)
Link to comment
Share on other sites

 

ZSbUUHw.png

That is a picture to show the tool and what I mean in the comment. Here is the code so you can copy:

#include <GUIToolbar.au3>

$hwnd = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "[CLASS:ToolbarWindow32;INSTANCE:1]")
$CMDiD = _GUICtrlToolbar_IndexToCommand($hwnd, 2)             ;This index on the info tool is 0 based, so under "Index" column, I read 3, not 2
$sText = _GUICtrlToolbar_GetButtonText($hwnd, $CMDiD)
MsgBox(0, "dsa", $sText)

Thanks alot, it worked!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...