I'm trying to set up Autohotkey macros for some common tasks, and I want the hotkeys to mimic Visual Studio's "two-step shortcut" behaviour - i.e. pressing Ctrl-K will enable "macro mode"; within macro mode, pressing certain keys will run a macro and then disable 'macro mode', and any other key will just disable macro mode.
Example - when typing a filename, I want to be able to insert today's date by tapping Ctrl-K, then pressing d.
Does anyone have a good example of a stateful autohotkey or Autoit script that behaves like this?