Since AHK now is at version 2 and scripts need to be updated I have scripts for both versions. You can run AHKv1 scripts in v2, but just using v2 is recommended.
The scripts are here:
AHK v2: https://raw.githubusercontent.com/Pathd ... gns-V2.ahk
AHK v1: https://raw.githubusercontent.com/Pathd ... paigns.ahk
Download and run it in AHK. It will detect if the game is running and only applies the hotkeys when it's active and focused. If you're familiar with AHK you know the score, otherwise please read:
https://www.autohotkey.com/docs/v2/Tutorial.htm
https://www.howtogeek.com/56481/the-beg ... ey-script/
You can examine the script for what keys are used and of course edit it - if you know what you're doing

Some notes:
- Hitting the Pause/Break key will stop the script, in case you're having trouble with it.
- You can navigate context menus using WASD/Arrows (nice at times).
- Space is used as Enter, making it possible to activate context menu options as well as closing some info dialogs.
- Q/E opens the Unit Dashboard/Subunit Inspector which is really effective.
- I have added specific commands that only trigger when certain dialogs are active, this to allow for toggling and Esc to close them.
- The mapping of "|" (for Log) might need to be changed for whatever your keyboard has left of the "1" key. For a US kb I think it's tilde (~)?
- There might be issues with non-standard kb layouts, but I'm not using any special keys (except for the "|" mentioned above).
- The game does have some "focus issues" that causes dialogs to lose input focus at times. I suspect the map hex hover feature. So sometimes you need to make sure the dialog is actually active (by clicking in it for instance) and sometimes it requires two presses to close, for some reason...

Let me know of any issues or problems - even suggestions or improvements - I'm far from an AHK guru and so limited to what I can accomplish (mostly just hotkey overrides...)