> There is no such thing on any other OS.

I thought the Mac comparable was Keyboard Maestro. Are the two that different (asks someone who hasn't used Windows since the '90s)?

https://www.keyboardmaestro.com

I use Karabiner Elements and Hammerspoon. Hammerspoon scripts are written in LUA, Karabiner Elements has a large repository of useful scripts.

On Linux I use Wayland but there are several ways to tackle that, involving /dev/uinput. For example there's Python bindings for that and several Rust apps to achieve it. In the end I use ydotool and kbct.

On Android I use MacroDroid.

You can also do some neat stuff with Selenium.

On mac I use goku[1] to define custom key bindings for karabiner elements. The ux feels much better than autohotkey, and I wish I had something similar on linux or windows.

[1]https://github.com/yqrashawn/GokuRakuJoudo