I was looking at AutoHotKey documentation , and I don't see a clear use of how to use 'or' in a context specific to hot keys. In my setup, Cygwin either starts with ahk_class cygwin (when I use the context menu) or mintty (when I use .bat or exe directly).
I am currently duplicating keyboard shortcuts into two separate blocks,
...
...
Is there a way to combine them? I tried:
#IfWinActive ahk_class cygwin ahk_class mintty
#IfWinActive ahk_class || cygwin ahk_class mintty
#IfWinActive ahk_class or cygwin ahk_class mintty
#IfWinActive ahk_class cygwin ||
#IfWinActive ahk_class cygwin or
#IfWinActive (ahk_class cygwin or ahk_class mintty)
#IfWinActive (ahk_class cygwin || ahk_class mintty)
#IfWinActive ahk_class cygwin|mintty
#IfWinActive ahk_class cygwin||mintty
... and none of them seem to work. This post claims that this can be done using groups, but I'm looking for a way to combine them into a single expression.
Ehryk source
share