I'm using a programmable keypad to trigger AHK macros. Using the software provided with the keypad, I've assigned each key to Ctrl+F1, Ctrl+F2 etc and have defined macros in AHK for each of those key combinations. I have to use KeyWait, Control to make this work because without it the script sometimes runs before the keypad releases the virtual control key,, which messes up the macro. This is how I have it set up, and it is working perfectly:
Code: Select all
^F1::
KeyWait, Control
(((macro here)))
return
Code: Select all
^+F1::
KeyWait, Control
KeyWait, Shift
(((secondary macro here)))
return