When I am using a specific program (Dolphin), my Esc hotkey closes it entirely, but I want different functionality for specific (sub-)windows. So far, I've been using #IfWinActive combined with GroupAdd.
Here is the documentation on the #IfWinActive command: https://autohotkey.com/docs/commands/_IfWinActive.htm
If the GroupAdd command allowed one to exclude multiple titles from the ExcludeTitle parameter, I would have solved the problem by now. ExcludeTitle does not accept ahk_group.
I'm hoping for something more elegant than each hotkey having an
IfWinNotActive ahk_group exceptions clause. I want the hotkey to work everywhere in the program except for the few specific (sub-)windows, so I'd rather something like one line of
GroupAdd, AllOfTheProgramExceptExceptions, ahk_exe Dolphin.exe, exceptions or a few lines of
GroupAdd, AllOfTheProgramExceptExceptions, ahk_exe Dolphin.exe, exception123 than making an ahk_group of all of the program's windows (which I don't know and would have to add to over time) except for the exceptions.