Posts: 769
Threads: 263
Joined: Jul 2012
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
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'
Posts: 12,095
Threads: 142
Joined: Dec 2002
Macro
Macro51
int hk=577 ;; Ctrl+A
int k_vk=hk&255
int k_mod=hk>>8
k_mod+15 ;; 2 to VK_CONTROL (17)
key (k_mod)(k_vk)
Posts: 769
Threads: 263
Joined: Jul 2012
AAHH!!!
That's it thank you!!!!!!!!!!!!!