Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
output key's pressed at beginning of script
#1
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.


Messages In This Thread
output key's pressed at beginning of script - by r0n - 03-06-2020, 04:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)