[C#.NET] How do I monitor the Keyboard buffer

  • Thread starter Thread starter augustesen
  • Start date Start date
A

augustesen

Hello

I am making a program for a handheld device, which has two main
functionnality buttons, which sends a value to the Keyboard buffer when
pressed.

What I need to do is make a function that monitors the Keyboard buffer
and returns a value when one of the two values are recived by the
keyboard buffer.

Can anyone help me with how to do this? (The more detailed help the
better as I am quite new to C#.NET :o)

Regards
Søren Augustesen
 
In the designer go to the events on your form double click in the KeyPress
event field, method will be created in your form which will be called each
time a key is pressed.

Cheers

Michael

Hello

I am making a program for a handheld device, which has two main
functionnality buttons, which sends a value to the Keyboard buffer when
pressed.

What I need to do is make a function that monitors the Keyboard buffer
and returns a value when one of the two values are recived by the
keyboard buffer.

Can anyone help me with how to do this? (The more detailed help the
better as I am quite new to C#.NET :o)

Regards
Søren Augustesen
 
Well, you could use a low-level keyboard hook, but it's not clear to me that
this is what you should be doing. It seems to me that any application that
took over *my* device's application buttons would be uninstalled so fast
that it would make your head spin. Look up "keyboard hook" in the archives,
if you don't care...

Paul T.
 
Back
Top