macOS has AppleScript that does the same thing, and it’s built into the OS. https://developer.apple.com/library/archive/documentation/Ap...
I actually think AHK has the better model here. It takes low level windows functions and presents them in a fairly simple and low friction way. MS could never end AHK without also breaking an unfathomable number of other applications.
So how to you create custom keyboard shortcuts with it?