Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control characters in a key Variable
#1
key "CSa"

works perfectly and sends to output Control + Shift + a

I wonder whether it is possible to store this string into a variable and key this variable instead :

str s=...
key (s)

My problem is that I fail storing VK_CONTROL and VK_SHIFT in this variable.

Any advice is mostly welcome.
#2
With key() not possible.
Need to convert all keys in the variable to virtual-key codes etc and call SendInput. Much work.
#3
Thank you very much. Best regards.


Forum Jump:


Users browsing this thread: 4 Guest(s)