about the keyboard events
-
I'm working on sending keyboard events from my code using Visual C++.Now I can send keyborad events using the fuction "keybd_event". for example: char pChar = 'a'; SHORT ks = VkKeyScan(pChar); BYTE key = ks & 0xFF; keybd_event(key,0,0,0); sends an message as if I pressed the button 'a' The scan code '0x61' stands for the key 'a' on the keyboard,what about the code of the combination of 'Alt+a' or 'ctrl+a'? I would like to know what are the scan codes that stand for two key combinations of the keyboard. Or is this any other way to send such information from my code? Thanks a lot!
-
I'm working on sending keyboard events from my code using Visual C++.Now I can send keyborad events using the fuction "keybd_event". for example: char pChar = 'a'; SHORT ks = VkKeyScan(pChar); BYTE key = ks & 0xFF; keybd_event(key,0,0,0); sends an message as if I pressed the button 'a' The scan code '0x61' stands for the key 'a' on the keyboard,what about the code of the combination of 'Alt+a' or 'ctrl+a'? I would like to know what are the scan codes that stand for two key combinations of the keyboard. Or is this any other way to send such information from my code? Thanks a lot!