Re: How to identify key pressed by user when he uses french keyboard set



You're writing what, an application? If so, catching WM_CHAR should give
you the translated character that the user meant to type, regardless of how
he got it. It's up to the keyboard driver and/or the keyboard layout to do
the mapping from whatever key was pressed to the right character.

Paul T.

<controllingae@xxxxxxxxx> wrote in message
news:1186955395.152548.180100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm dealing with convering unambiguously characters entered on french
keyboard to ASCII format or indentifying exact key that user pressed.
The result of the user's output is text file, but many characters
entered by the user might be interpeted ambiguously, for example:
character "Ö" once stands for "a" other time it stands for k... It's
strange, however my question is how to identify the key pressed when
the output from the keyboard is "½" for example, I didn't find such a
character on the keyboard map! What is wrong? Why the output produced
form keyboard (and gathered by API GetKeyState) contains such a
characters when user sees only ASCII otput when typing... I didn't
find anything on the Internet about this matter. Does any of you
bright people have any slight idea how to overcome this problem?

Thanks.
M.


.



Relevant Pages

  • PC-like keyboard for console
    ... ALT-<keyboard character> does not produce the character ... My ALT key is working, ... I installed the emacs keyboard and now the NUM ... # code base shift cntrl shift alt shift cntrl shift state ...
    (comp.unix.bsd.freebsd.misc)
  • Re: In Word, how can I place a bar above a letter to show a mean?
    ... most certainly is far more convenient to assign a keyboard shortcut to ... have any idea how to find instructions in creating a macro. ... keyboard short cut for every possilble keyboard character, ... Word MVP web sitehttp://word.mvps.org ...
    (microsoft.public.word.docmanagement)
  • Re: Checking for a keypress on Linux ?????
    ... >polling for a keypress on the keyboard. ... the short delay in kbhit() ... a blocking single character input from stdin ... int getch; ...
    (comp.os.linux.development.apps)
  • Re: In Word, how can I place a bar above a letter to show a mean?
    ... Combining Diacritic Tilde was not positioned properly); ... most certainly is far more convenient to assign a keyboard shortcut to ... It is of course "impossible" for me to create a macro, ... keyboard short cut for every possilble keyboard character, ...
    (microsoft.public.word.docmanagement)
  • Re: Not quite standard... but socially acceptable
    ... screen, a keyboard, and a commandline, then is there any commonly used ... How can I read a single character from the keyboard without ... Concepts such as screens and keyboards are not even ... with the terminal driver modes (CBREAK or RAW under "classic" ...
    (comp.lang.c)

Loading