From: Satchmo on
Henning wrote:
> Satchmo wrote:
>> Just curious, I just switched from my English input locale to Swedish
>> (LCID&H041D) using the APIs MapVirtualKeyEx() and LoadKeyboardLayout()
>> and I got the following outputs (verbatim by letter/case):
>>
>> Virtual Key English Swedish
>> --------------------------------
>> vbKeyControl Ctrl CTRL is Ctrl
>> vbKeyShift Shift SKIFT is a bold Up-arrow
>> vbKeyMenu Alt ALT is Alt
>> vbKeySnapshot Sys Req Sys Req is SysRq
>> vbKeyBack Backspace BACKSTEG is a backarrow
>> vbKeyReturn Enter RETUR is Enter
>
> All labels on my Logitech kb are in english.
> Caps Lock, Insert, Delete, Home and so on.
> The only diff is the swedish letters ��� ��� and possibly the shifted
> AlpaNumeric keys.
> @ is AltGr+2, $ is AltGr+4, { is AltGr+7, [ is AltGr+8......

OK, the function GetKeyNameText() is not accurate or useful then. It was
wonderful to think I could use this function to get the name of the key
(wasn't that the idea (Microsoft's)? That function should be removed
from the API! Any thoughts?

Anyways, I'll just use resource files and put in the name of the
function keys in English for all languages (CTL, ALT, PRINT SCR, ENTER,
+, etc). Any objections anyone?
First  |  Prev  | 
Pages: 1 2
Prev: Class Access
Next: Copy a Folder