03-06-2020, 04:34 PM
Is there a way to output what key is pressed at the beginning of a macro/function.
Including the modifiers and working in compiled to .exe
For example:
Macro/function is compiled to .exe. User presses [CTRL]+[SHIFT]+[ALT]+[WIN] when double clicking the compiled exe and then the VK value of the pressed keys will be output.
I can then use that value to apply "FormatKeyString" to make it human readable or do other actions based on the VK value.
The closest things are (of what I know)
- ifk
- if((GetMod&2)&&(GetMod&1)) .... to check if CTRL and SHIFT is pressed
But they are not the best way to approach this (I think).
Chances are big that this has been covered in a forum thread but I couldn't find it.
Including the modifiers and working in compiled to .exe
For example:
Macro/function is compiled to .exe. User presses [CTRL]+[SHIFT]+[ALT]+[WIN] when double clicking the compiled exe and then the VK value of the pressed keys will be output.
I can then use that value to apply "FormatKeyString" to make it human readable or do other actions based on the VK value.
The closest things are (of what I know)
- ifk
- if((GetMod&2)&&(GetMod&1)) .... to check if CTRL and SHIFT is pressed
But they are not the best way to approach this (I think).
Chances are big that this has been covered in a forum thread but I couldn't find it.