Jump to content
Sign in to follow this  
MrOrangeFFM

Traybar Height

Recommended Posts

MrOrangeFFM

Hi,

is there a way to get the height of the traybar?

Regards,

MrOrangeFFM

Share this post


Link to post
Share on other sites
sandin
MrOrangeFFM

$pos = WinGetPos("[CLASS:Shell_TrayWnd]", "")
MsgBox(0, "tray size", "Tray height is: " & $pos[3])

Thanx! Works like a charm!

Share this post


Link to post
Share on other sites
rasim

MrOrangeFFM

If you want to getting exactly a tray height, then this be a right method:

#include <WinAPI.au3>

$hParent = _WinAPI_FindWindow("Shell_TrayWnd", "")
$hChild = ControlGetHandle($hParent, "", "TrayNotifyWnd")
$hToolBar = ControlGetHandle($hChild, "", "ToolbarWindow321")

$height = _WinAPI_GetWindowHeight($hToolBar)

MsgBox(0, "tray size", "Tray height is: " & $height)

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  

×