GetKeyNameText without keyboard input but with saved datas
Posted on 2006-07-12
How can I use the GetKeyNameText to display a list of saved keyboard shortcuts ?
Saved datas is (for each keyboard shortcut) :
Alt key pressed or not
Control key pressed or not
Short key pressed or not
The problem is that GetKeyNameText gets a scancode in input (scancode is retrieved with MapVirtualKey(VIRTUALKEYCODE, 0)
but not the state of the 3 other keys (Alt, Control or Shift).
For example (AZERTY keyboard) :
for the "A" key I will always get "A" instead of "A" (shift key is not pressed) or "a" (shift key is pressed)
for the "&" key I will always get "1" instead of "&" (shift key is not pressed) or "1" (shift key is pressed)