Fun fact, WinCompose used to be written in AutoHotkey. It's still shown as a branch on GitHub: https://github.com/samhocevar/wincompose/tree/autohotkey
AutoHotkey is really an amazing tool. The actual programming language is awkward, but it has capabilities no other tool offers without writing a bunch of tricky low-level C code yourself.