AutoHotKey - Getting script to run only in certain programs
Posted on 2011-03-22
I'm running the script below in AutoHotKey
If WinActive("ahk_class MozillaUIWindowClass") Or WinActive("ahk_class MozillaWindowClass")
It works great in Firefox to send a Control + k when I press Control + e.
The issue is when I use any other programs. Control + e makes nothing happen. I want control + e to still work in other apps.
I tried putting in an else like this:
...but then the script then loops and my PC gets crazy.
Any and all help is appreciated!