Jump to content

Recommended Posts

Posted

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.

  • Solution
Posted

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)
Posted

 

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!

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
  • Recently Browsing   0 members

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