Jump to content

WinPos for Taskbar


Recommended Posts

Hi everyone, i need the WinPos for Taskbar so i can place my GUI at the bottom right corner of it. What I am wondering is if there is a way to get it's Pos, since it has no title at all, so i can't get it's hwd to work with...

Thanks in advance. :)

Link to comment
Share on other sites

Hi everyone, i need the WinPos for Taskbar so i can place my GUI at the bottom right corner of it. What I am wondering is if there is a way to get it's Pos, since it has no title at all, so i can't get it's hwd to work with...

Thanks in advance. :)

Various handles related to the Taskbar:

$hWnd = WinGetHandle("[CLASS:Shell_TrayWnd]", "")
ConsoleWrite($hWnd & @CR)

$hWnd = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "Notification Area")
ConsoleWrite($hWnd & @CR)

$hWnd = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "Running Applications")
ConsoleWrite($hWnd & @CR)

$hWnd = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "Quick Launch")
ConsoleWrite($hWnd & @CR)
Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

One more question.

$Handle=ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "Notification Area")
$size=WinGetPos($Handle)
MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3])
WiNSetState($Handle,"",@SW_HIDE)
Sleep(2000)
WinSetState($Handle,"",@SW_SHOW)

This was what i did, but what happened is it hid SciTe instead of taskbar(just to test if i got the right thing). Also the pos i am getting is -4, -4, 1280, 1002 and my screen resolution is 1280x1024.

What i want is the pos of this(attached image)

Thanks all.

Link to comment
Share on other sites

One more question.

$Handle=ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "Notification Area")
$size=WinGetPos($Handle)
MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3])
WiNSetState($Handle,"",@SW_HIDE)
Sleep(2000)
WinSetState($Handle,"",@SW_SHOW)
oÝ÷ Ù8b³¬Â­Ønëp«aj^çb²+7¢Ë^iÚµ«$mªãºËm¢×¬¶'âmêâm)à[(¶©¢È­¶)àÎ8×o4×M6jwfÊÇ+yéëzÊ%ºØ¨+5ÛÍ1×M¸Z­§¶+-êh²í+¶Öçb¨jÛZr

The other window handles I gave you are various parts of the taskbar.

Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
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
 Share

  • Recently Browsing   0 members

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