Opening the new System Tray in Windows 11 22H2, Build 22621.1344

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Cariboudjan
Posts: 9
Joined: 14 Jul 2020, 21:12

Opening the new System Tray in Windows 11 22H2, Build 22621.1344

Post by Cariboudjan » 02 Mar 2023, 10:34

[Mod edit: Topic moved to v1 help.]

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

}
}

Return to “Ask for Help (v1)”