Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VK to keypress
#1
Sorry for this really simple question, I also had a snippet for this one but somehow lost it.

How do I execute a "key" command withe the following integer value of 577 which is [CTRL]+[A]

Macro Macro41
Code:
Copy      Help
int hk=577 ;; Ctrl+A
int k_vk=hk&255
int k_mod=hk>>8

key(k_vk|k_mod) ;; does not work
key(hk) ;; does not work
key(577) ;; does not work

QmKeyCodeFromVK 577 qmkey
out qmkey ;; result '(577)'

QmKeyCodeFromVK k_vk|k_mod qmkey
out qmkey ;; result 'c'


Messages In This Thread
VK to keypress - by r0n - 10-07-2018, 06:43 PM
RE: VK to keypress - by Gintaras - 10-07-2018, 06:50 PM
RE: VK to keypress - by r0n - 10-07-2018, 06:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)