Specifically I'm attempting to map my MacBook's fn key to left mouse click.

Back in the old days when I was using Windows, I came across a wonderful little utility that let me map anything to anything: <http://www.autohotkey.com/>

You create a little text file, e.g. 

```
^!s::                             ; CTRL + ALT + s
Send Sincerely,{enter}John Smith  ; sends keystrokes to active window
return

```

Creating a simple text file was infinitely better than any GUI based remapper.

* I can look through it and see everything that is going on at a glance
* I can customise every last detail
* I can save / retrieve / post / share my scripts

Really, it's the one thing I really miss about Windows.

So my question is: How do I go about doing this in OS X? Every Google search leads to <https://pqrs.org/macosx/keyremap4macbook/> and I dislike this package: it has an insanely cluttered GUI.

I would be very happy if I could do it in a shell script, or even compile code.