I am using a USB Barcode Scanner to scan in 2D barcodes (2D barcodes contain several hundred characters of usually ASCII text).
The problem is that the Barcode Scanner inputs the same as a keyboard. If I open Notepad and scan a barcode it will type everything into Notepad.
So, in my application, I need to detect the barcode scanner's input, probably by listening for all keyboard events.
Normally it is impossible to detect which input is from the keyboard and which input is from the Barcode Scanner.
But my plan is to put a CODEWORD into the barcode, something like "Hello World".
If the keyboard listener detects C + O + D + E + W + O + R + D it will know that this is a Barcode being scanned and to input it into a specific TMemo on a specific Form.