Seeing if anyone has cracked the code yet to open the new System Tray in Windows 11. Previously I used this script, but does not work anymore.
Code: Select all
ActivateTray:
X = %2%
Y = %3%
direction = %4%
IfWinActive, ahk_class NotifyIconOverflowWindow
WinHide, ahk_class NotifyIconOverflowWindow
Else
{
ControlClick, %5%, ahk_class Shell_TrayWnd
WinGetPos,,,WidthOfTray,HeightOfTray,ahk_class NotifyIconOverflowWindow
TrueX := X-WidthOfTray/2
TrueY := Y-1.5
WinSet, Transparent, 0, ahk_class NotifyIconOverflowWindow
ControlClick, %5%, ahk_class Shell_TrayWnd
WinMove, ahk_class NotifyIconOverflowWindow, , %TrueX%, %TrueY%
WinSet, Transparent, OFF, ahk_class NotifyIconOverflowWindow
loop
{
WinMove, ahk_class NotifyIconOverflowWindow, , %TrueX%, %TrueY%
IfWinNotActive, ahk_class NotifyIconOverflowWindow
ExitApp
}
}