Is there an equivalent product/method for AutoHotkey. For those that don't know, its a product that allows you to program your mouse movements and keyboard. This allows me to "macro" certain functions on programs instead of having to do it manually. In the old days they used to call them keyboard stuffers. But that is only half of the solution as I need a "mouse movement" stuffer as well.

Is there such a beast?


I recommend Keyboard Maestro which lets you set up macros with various actions that can be triggered with keyboard shortcuts or other triggers.


Check out Hammerspoon. It seems to be very fully featured and — like AutoHotkey — offers a programmatic way to do all sorts of OSX automation, in addition to key binding/remapping.

(It takes a plugin based approach. Karabiner, mentioned in an answer above, can be used as a plugin too allowing its functionality to be enhanced in all sorts of ways.)

http://www.hammerspoon.org/


I use Karabiner. It is a bit of a pain to customize (it uses XML), but it is just as powerful as AHK. It can also move the mouse.


I use BetterTouchTools. It can emulate button pressees, mouse clicks, lots of useful functions depending on the currently open application.

Ex: F1 in evernote makes text bold, F2 makes text bigger, F3 selects the whole line:
enter image description here

BetterTouchTools was free until very recently. Now it switched to a 'pay as much as you like' model with a minimum of ~2 dollars or so.

However, it's a GUI based automater, it doesn't have the programming features that Autohotkey has. You can however combine multiple actions like activating a window, press a button, hide a window again etc..