I want to make a hotkey that will maximize all the windows of the active window's class or process, but only those windows. I tried the following, but the Group does not reset with each thread:
Code:
+CapsLock::
WinGet, mx, MinMax, A
If(mx = 0)
{
WinGetClass, gclass, A
GroupAdd, g2max, ahk_class %gclass%
WinMaximize, ahk_group g2max
}
Else
WinRestore, A
return
Is there a GroupRemove function? I don't want windows of another app maximized just because I previously used the hotkey when one of the other app's windows was active.