I am working on reading the barcode using a scanner and I have the following questions:
- Is there a way to distinguish between the input from the keyboard and input from the scanner ? This is required for me because the barcode reader will include a preamble, terminator and a prefix to the barcode value. For ex, if the value is 12345 the barcode will have \pre12345\ where \ and \ indicate the start and end and pre identifies the type of data. If I know that the data is being typed from keyboard and not from a scanner then I would show whatever the user types. If I know that the data is from a scanner then I will strip of the \pre and \ and show only the data.
Thanks,