We have a text field on our screen and the operator is supposed to scan a barcode with a barcode scanner. The operator can also type into this text field. Our script is in the “keyTyped” event. We only run the code if we receive a “\n” or character return.
The customer wants to know when the operator “types” the barcode vs. “scans” the barcode. Is there a way to inhibit typing and only allow barcode scanning? Ignore the obvious of removing the PC keyboard.
We were thinking of timing, but we’re not really sure on how to do that in script. Typing a 20 character string takes a lot longer than scanning it so that’s one way of knowing the difference. Any ideas?
Thank you!