
zip if you don't understand all that building stuff on the main page), extract the. So, the initial setup of NotEnoughHotkeys (NEH from now on) is really easy (and the reason I like this program so much), you just download it from its GitHub page (you can click on newest release and download the. e., if you want to set a hotkey to mute your mic, you might put muteMic as the argument on the macros in NotEnoughHotkeys, and in the AHK script you'd have if(var = "muteMic")::), because that might cause several instances of the script to be open (you can add #SingleInstance force at the top just to be sure).Īfter the long tutorial I go for some pros and cons of this method. In the AHK script, for it to run whatever set of actions you want when you press the key you just designated, just put the same you just put as a command line argument inside the corresponding if (i. Inside NotEnoughHotkeys, create a new macros set to launch process, with process to launch set to the AHK script you created in the previous step, and arguments set to some string you want to use to identify it. Var := A_Args Saves the (first) command line parameter passed when the script was called in a variable Things that go at the top of most ahk scripts like SendMode

Separately, create an AHK script (that will be the performing the actual macros) with roughly the following structure:

Identify the keyboard you want to use as a macro keyboard in it

TL,DR in case you just want the gist of it:

So, I recently decided to set up a 2nd keyboard for macros, and while there's already a lot of documentation on the topic (I recommend Taran's GitHub page on it), I didn't find any on NotEnoughHotkeys, which is actually a really good, easy to use (and open source too!) alternative to LuaMacros (albeit a bit less powerful), so I decided to post my findings here for anyone who might find them useful.Īs said in the title, my main focus will be integration of this program with AutoHotkey (AHK), since there's already plenty of documentation, tools, and user-made macros for it already out there so it's really practical to make whatever tool you're using just trigger AHK scripts. It's worth adding that I'm a begginer with AHK, so I won't go into too much detail with it.
