Sign in to follow this  
Followers 0
RoAndrei

"Read a Toolbar"

3 posts in this topic

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.

Share this post


Link to post
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)

Share this post


Link to post
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!

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