Routing USB Magnetic Stripe Reader to a file handle

From: Robijashi (default_at_127.0.0.1)
Date: 01/23/05


Date: Sat, 22 Jan 2005 20:40:20 -0500

Hi,

When using a Magnetic Stripe Reader which acts like a keyboard, is it
possible to route the output of the Magnetic Stripe Reader into my program
(running in the background) rather then the Magnetic Stripe Reader "typing"
into the application with a keyboard focus.

Can I do something like this
#> myprogram < /dev/usb/whatevercardreader

and have the output go myprogram only.

Or can I just open this file "/dev/usb/cardreader" and read from it?

Currently the reader is supported by OS and it acting like a keyboard,
dumping everything to the application with a keyboard focus.

Thanks

Robijashi



Relevant Pages

  • Re: Read keys without keyboard focus
    ... I'm not actively pursuing this problem anymore. ... neither kbhit() function nor the bug report referenced ... When you don't have the keyboard focus and still want to read ...
    (comp.lang.java.programmer)
  • How to display image dynamically??
    ... I am having a GUI where user runs experiment and the ... keyboard is always focussed onto the GUI for user key ... updated data (using imagesc), but the keyboard focus ...
    (comp.soft-sys.matlab)
  • Re: Event handling mechanism in Windows
    ... Maybe he just wants to know how the keyboard input event ... AFAIK keyboard events are queued to the thread that ... has the keyboard focus, that's, the thread that owns ...
    (microsoft.public.win32.programmer.kernel)