Is this a bug ?

Feb 11, 2012 at 9:37 PM
Edited Feb 12, 2012 at 9:12 AM

I try to write some non-english letter ike ~, ', and others.

When this hook is active,  I try type words like - ä (Oem5 + a) or ö (Oem5 + o) - the word appears ¨¨a and ¨¨o...

When hook is disable i can again normally write !

PS - When i use hook library from here http://www.codeproject.com/Articles/6362/Global-System-Hooks-in-NET , problem does NOT occur !!

 

How can i fix it with your class library ?

Coordinator
Feb 12, 2012 at 4:22 PM

Seems to be a bug. I will verify and create an issue.

Feb 13, 2012 at 11:47 AM

 

I'd be grateful if you fix it as soon as possible :\

I have an important project and I don't want use another library

Feb 13, 2012 at 7:50 PM
Edited Feb 13, 2012 at 7:53 PM
duybk wrote:

 

I'd be grateful if you fix it as soon as possible :\

I have an important project and I don't want use another library

 

Duybk,

A Unicode-capable version of the library was just updated today.  I tested it with a German keyboard layout in Windows and it worked.  I don't have a physical German keyboard but give it a try and let us know whether you continue to have the problem.

If you're using OnKeyUp/OnKeyDown, use:

KeyEventArgsExt ext = e as KeyEventArgsExt;

That will enable you to use the ext.UnicodeChar, which is the result of a translation based on the active keyboard.

 

P.S. Sorry if you're not German.  You might be Estonian for all I know.  I just tested it with the most widely used keyboard that has the characters you mentioned.

Feb 13, 2012 at 9:13 PM

Thank for your email

 

I have downloaded it, tested it but it's still not working correctly ! :(

One change from the previous version what I noticed is that: when i try to type "ä" (Oem5 + a), instead of "¨¨a"  I get only "a" !?!

When I try to press Oem5 several times and then "a", so I get only "a" (properly must be "¨¨¨¨¨¨¨¨a"). As if that i can't use the key Oem5 !?

 


For sure I did for you 2 printscreen

http://i1176.photobucket.com/albums/x331/DuyBK283/1_.png

http://i1176.photobucket.com/albums/x331/DuyBK283/2__.png

 

 

PS - Sorry for my English :( I'm a Czech, i have Czech keyboard a sometimes I need to something write in German

Feb 13, 2012 at 11:36 PM
Edited Feb 13, 2012 at 11:36 PM

Duybk,

 

Do you typically change the keyboard layout for Notepad to German using the Windows' language bar?  If so, make sure the language bar says DE when Notepad is active then press '§' on your Czech keyboard instead of using the ¨ + a combo and let me know what happens. 

 

If you use the OnKeyPress event instead of OnKeyDown/OnKeyUp does the problem occur?

 

Whenever you use Czech-specific characters, do you encounter any problems?

Feb 14, 2012 at 12:22 AM
Edited Feb 14, 2012 at 12:30 AM

Hi nhr

 

1) No, with using Czech keyboard layout i can normally type German-specific characters. I'm aware that § and ¨ are 2 buttons next to each other :)

When the hook is active, problem occurs everywhere, not only in Notepad (Internet Explorer, Chrome, Word, in game....)

2) I tested it with your demo program, also i don't use OnKeyPress or OnKeyDown/OnKeyUp events

3) When the hook is active, i have no problems with typing Czech-specific characters, because the Czech-specific characters are written with only one key, not with a combination of two as in some German characters.

 

When i use hook library from here http://www.codeproject.com/Articles/6362/Global-System-Hooks-in-NET , problem does NOT occur !

 

PS - TESTED >> This problem also applies in other languages ​​where it is used to create some similar specific characters (for example Brazilian, Vietnamese....) 

Feb 20, 2012 at 3:47 PM

 

What about eliminating bugs?

This bug is already fixed?