Is there a way to switch Taskbar Button Grouping with a hotkey between "combine" and "not combine" w/o restarting explorer? Preferebaly as AHK


Is there a way to switch Taskbar Button Grouping with a hotkey between "combine" and "not combine" w/o restarting explorer? Preferebaly as AHK
#k:: ; Win+K -- change as necessary
{
; 0 = Always combine, hide labels
; 1 = Combine when taskbar is full
; 2 = Never combine
RegWrite, REG_DWORD, HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, TaskbarGlomLevel, % ( ( Toggle ) ? ( "0" ) : ( "2" ) )
SendMessage, 0x1A, , , , % "ahk_class Shell_TrayWnd" ; WM_SETTINGCHANGE := 0x1A
WinSet, Redraw, , % "ahk_class Shell_TrayWnd"
Toggle := !Toggle
}
ReturnOriginal address: https://www.donationcoder.com/forum/index.php?topic=47150.0