c# KeyboardHookListener.HookManager_KeyPress detects duplicate keys

Jul 9, 2012 at 11:17 AM
Edited Jul 9, 2012 at 11:18 AM

Using the event :

"KeyboardHookListener.HookManager_KeyPress"

to detect data from a Magnetic Card Strip Reader, that is acting as a phisical keyboard,

causes the detection of some duplicate keys.

The reader "output" a sequence of chars, with approx a delay of less than 200ms.

Have you experience in a problem like this?

 

Thank you for the help!

  

 

 

private KeyboardHookListener m_KeyboardHookManager;

...

m_KeyboardHookManager.KeyPress += HookManager_KeyPress;

 ...

 

 private void HookManager_KeyPress(object sender, KeyPressEventArgs e)

{

Console.WriteLine(keyChar);

  }