I am trying to open and close a program (e.g. Notepad) with the same hokey in Windows, let's say Strg+Alt+X. So, when the program is closed I wish to open it with "X" and when it is open I wish to close it with "X".
This is really easy to do with two hotkeys, one to open and one to close the program. But I don't know how to tackle this for the same hotkey. Could someone point me in the right direction? Maybe this is possible with Autohotkey?