Intercept and ignore keyboard event in Windows 7 32bit

Posted by Sg2010 on Stack Overflow See other posts from Stack Overflow or by Sg2010
Published on 2010-03-18T22:09:52Z Indexed on 2010/03/18 22:11 UTC
Read the original article Hit count: 350

Filed under:
|
|
|
|

Hi all,

My hardware has a problem, from time to time it's sending a "keydown" followed by a "keyup" of event:

keydown: None LButton, OemClear 255

keyup: None LButton, OemClear 255

keydown: None LButton, OemClear 255

keyup: None LButton, OemClear 255

It goes like this forever, in Windows.

In general it doesn't affect most of the applications, because this key is not printable. I think it's a special function key, like a media key or something. It doesn't do anything.

But, in some applications that LISTEN to keydown and keyup, I get undesire and unexpected behaviour.

Is there a way to intercept these 2 events in Windows (for all applications, for Windows itself) and make the OS ignore them?

This is really important to me, if you can think of any solution, I'd be forever thankful.

© Stack Overflow or respective owner

Related posts about keyboard

Related posts about win32