A
Alex Maghen
I have been experimenting with sample code recommended by some folks on MSDN
for globally hooking the Keyboard in C#. The sample is by Michael Kennedy and
it's a System Hook class library.
Anyway, his class does the job of allowing me to receive Key-Down and Key-Up
events globally (as well as mouse stuff that I'm not really interested in
right now). But it doesn't give me what I really need.
What I'm really looking for is a C# class that will allow me to globally
handle events where I am passed the Keyboard "Text Input" as opposed to the
keyboard keys that are pressed. What I mean is that if the user had pressed a
lower-case "d" or an uppoer-case "D", I'd like to receive it that way... but
far more complicated than that, if they had pressed a key in a different
language kayboard, I'd like to receive that character in unicode. In other
words, I want to receive the TEXT character pressed or sent to the event
queue as opposed to receiving the hardware KEY pressed.
Any help - or especially code I could... "borrow"... would be *much*
appreciated!
Alex
for globally hooking the Keyboard in C#. The sample is by Michael Kennedy and
it's a System Hook class library.
Anyway, his class does the job of allowing me to receive Key-Down and Key-Up
events globally (as well as mouse stuff that I'm not really interested in
right now). But it doesn't give me what I really need.
What I'm really looking for is a C# class that will allow me to globally
handle events where I am passed the Keyboard "Text Input" as opposed to the
keyboard keys that are pressed. What I mean is that if the user had pressed a
lower-case "d" or an uppoer-case "D", I'd like to receive it that way... but
far more complicated than that, if they had pressed a key in a different
language kayboard, I'd like to receive that character in unicode. In other
words, I want to receive the TEXT character pressed or sent to the event
queue as opposed to receiving the hardware KEY pressed.
Any help - or especially code I could... "borrow"... would be *much*
appreciated!
Alex