Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PRESSING TWO OR MORE KEYS
#1
Hello:

I'm trying to make a Macro
I need to know if a user presses two or three keys at the same time, for example "W" + "E" + "Y" it is not necesary to detect "shift key" , i have used a code posted here:

Code:
Copy      Help
function nCode wParam KBDLLHOOKSTRUCT*h
FormatKeyString h.vkCode 0 &_s
out _s
ret CallNextHookEx(testkeyhook nCode wParam h)

This is a hook, but that code only get one key status at the same time. Could you please help me?

Thank you!!
Regards
#2
Hello:

I think i have solved this problem using this code and using global variables:

Code:
Copy      Help
function nCode wParam KBDLLHOOKSTRUCT*h

FormatKeyString h.vkCode 0 &_s
out h.flags&&LLKHF_UP
out _s
ret CallNextHookEx(testkeyhook nCode wParam h)

Regards.


Forum Jump:


Users browsing this thread: 1 Guest(s)