MrOrangeFFM Posted July 15, 2008 Posted July 15, 2008 Hi, is there a way to get the height of the traybar? Regards, MrOrangeFFM
sandin Posted July 15, 2008 Posted July 15, 2008 $pos = WinGetPos("[CLASS:Shell_TrayWnd]", "") MsgBox(0, "tray size", "Tray height is: " & $pos[3]) Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
MrOrangeFFM Posted July 15, 2008 Author Posted July 15, 2008 $pos = WinGetPos("[CLASS:Shell_TrayWnd]", "") MsgBox(0, "tray size", "Tray height is: " & $pos[3]) Thanx! Works like a charm!
rasim Posted July 15, 2008 Posted July 15, 2008 MrOrangeFFMIf 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)
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