I am trying to take in a string from a barcode scanner that is eight digits long. For example "12345678" and if the correct barcode is scanned, then a function is called. I would like to be able to advance automatically when the barcode is scanned instead of having to press enter afterwards. Does anyone know of something similar to msvcrt.getch() that would take in a full string instead of a single character? Or a workaround?
ncharacters. As you saypress enterI assume you have input on something like a keyboard so it might help