Re: Reading from barcode scanner
Posted by dscho on Feb 08, 2008; 1:57pm
URL: http://imagej.273.s1.nabble.com/Reading-from-barcode-scanner-tp3697230p3697233.html
Hi,
On Fri, 8 Feb 2008, Emilio Miguelanez Martin wrote:
> However, I don't think I'll need an extra library. In the standalone
> application, the standard input (System.in) works perfectly.
System.in is usually the channel that takes the keyboard input in the
terminal. I fail to see how using System.in to read from a barcode
scanner via USB could be correct, ever.
So it appears to me as if your USB barcode scanner would generate keyboard
events. But this has nothing to do with ImageJ: the events are
transformed into keyboard events by the driver, long before any Java code
could intercept it.
Oh, and BTW
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Hth,
Dscho