How to make autohotkey work in all programs except one

I have been testing autohotkey and I have found a way that depending on the program that is running, you can activate a certain keys functionality, but... how can I make a combination work in all programs except one?


Solution 1:

To disable selected hotkeys or hotstrings automatically based on the type of window that is present, use #IfWinActive/Exist.

Check the documentation for more info https://www.autohotkey.com/docs/commands/_IfWinActive.htm