On 2/3/17, 4:44 PM, Justin Taylor wrote:
A TAB can't trigger a submit back to the server, and I can't figure out how to code a Field Exit.
You're right; a Field Exit will trip an auto-enter, a tab won't. I
forgot that little detail; it's been a few years since I wrote our
emulator. But if a barcode runs you off the end of a field and either
falls into the next one, or trips the auto-enter, a Field Exit will
(barring certain field specifications that will keep you from falling
through to the next field, if I remember right) put you in the wrong
field, just the same as a tab.
At any rate, unless I somehow missed it, you haven't said *what* this
barcode scanner is connected to. Obviously either a terminal, or
something that is emulating one, and I'm guessing that the scanner is
somehow emulating a keyboard. The $64 question is in the details of what
the scanner is feeding to . . . whatever it's feeding.
If it's feeding ASCII, rather than scan codes, then you've got it easy:
ASCII only has 31 control characters (32 if you include x'7F', Delete, a
throwback to the days of punched tape), and you already know that it's
not x'09' (horizontal tab). X'0D' (carriage return) could be Field Exit,
or it could be Enter.
If it's feeding scan codes, then you need to know WHAT scan codes. If
it's emulating a PC keyboard, then you might try a GOOGLE search on "PC
Keyboard Scan Codes"; you'll find dozens of references. If it's feeding
scan codes to, say, a 3487, then you'd need to find somebody with the
keyboard specs for InfoWindow 5250 terminals (all keyboards for
InfoWindow and InfoWindow II terminals are interchangeable).
--
JHHL
As an Amazon Associate we earn from qualifying purchases.