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

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 :blush:)

Regards
Søren Augustesen
 
M

Michael Lang

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 :blush:)

Regards
Søren Augustesen
 
E

Enrico Pavesi

And if application is in background (wince 4.2 or 5.0)?

Ho can it be done?

Thanks
 
P

Paul G. Tobey [eMVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top