RoAndrei Posted July 31, 2013 Share Posted July 31, 2013 I'm kinda new on Autoit. Hope someone can help me http://epvpimg.com/QD5Gb - look at this print first. So, i want that, in the messagebox, to be that " Skype(Do Not Disturb)" text, if you know what i mean. But i have no ideea on how to get it, i nevered worked with stuffs like these before. Link to comment Share on other sites More sharing options...
Solution 0xdefea7 Posted July 31, 2013 Solution Share Posted July 31, 2013 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 More sharing options...
RoAndrei Posted August 1, 2013 Author Share Posted August 1, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now