Advertisement

WM_CHAR message

Started by March 04, 2001 10:41 PM
0 comments, last by Tolik 23 years, 11 months ago
Windows message WM_CHAR returns ASCII code for pressed button, but when default Windows keyboard language is not English, it returns another number, because ASCII table for ather languages is differ then English ASCII(but pressed button is the SAME). What should i do to solve this problem? Is there any function to get scan code of pressed button (but i don''t want to use DirectInput)? OR, there is, any way to change keyboard language to English automaticly? Or, maybe, anyaone has another solvation for this problem?
The ASCII code table isn''t different for other languages. But may be you should try scanning the WM_KEYDOWN messages and use the virtual keycodes.

This topic is closed to new replies.

Advertisement