Re: Reading from barcode scanner
Posted by Emilio Miguelanez Martin on Feb 11, 2008; 11:43am
URL: http://imagej.273.s1.nabble.com/Reading-from-barcode-scanner-tp3697230p3697238.html
> ImageJ does not change System.in. The ImageJ launcher does not modify it.
> Changing javaw to java does not help it.
>
> The thing is: when one of ImageJ's windows is in the foreground, the
> original _console_ is not. Therefore, it does not receive keyboard input,
> but the foreground windows do. And since the console does not receive any
> keyboard input, System.in is silent, too.
And I agree with it, because with a text window (or dialog with user
input box) open in the foreground, it receives the barcode scanned.
My problem is how I can retrieve this barcode value without user
intervention (i.e. not OKayed the dialog). One solution (hinted by Jeff
Hanson) is to configure the scanner so it will send a return key after
each reading, but I haven't managed to get the product manual yet.
Cheers,
Emilio
--
Emilio Migueláñez Martín, PhD
Research Associate
Electrical, Electronic and Computing Engineering
School of Engineering and Physical Sciences
Heriot-Watt University
Riccarton
Edinburgh EH14 4AS
t: +44 (0) 131 4513357