Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string to keycode (keypress)
#1
Sorry for this really simple question, but I couldn't find it in the help section 'key'
If I put ALT + F8 in a string "AF8" how do I translate it to a hotkey press (which also works in compiled exe).

Function Function12
Code:
Copy      Help
str s="AF8" ;; [ALT] + [F8]

key s
key (s)
key(s)
key(F"{s}")
key (F"{s}")

;; ... ?


The goal is to use it in a dialog where the user can input a key press combination in an inputfield.
Examples:
AF8, = ALT+F8
CSF2 = CTRL+SHIFT+F2
...etc...


Messages In This Thread
string to keycode (keypress) - by r0n - 03-08-2020, 06:20 PM
RE: string to keycode (keypress) - by Gintaras - 03-08-2020, 07:15 PM
RE: string to keycode (keypress) - by r0n - 03-08-2020, 07:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)