Answer the question
In order to leave comments, you need to log in
Is it possible in Python to specify which input device to work with?
Good afternoon.
There is a small program in Python 3.5 (Windows) that receives data from a barcode scanner and saves it to the database. If you connect a second scanner, the program will receive information from two scanners. Is it possible to make it impossible to receive (or allow to receive) data from one device? Tell me, please, who faced this, where you can dig.
PS It is assumed that two copies of the program will be launched, one will receive data from one scanner, the other - from the second.
Answer the question
In order to leave comments, you need to log in
Your scanner is in keyboard break mode. For any program, the data from the scanner in this mode looks like it was entered from the keyboard. Your program doesn't even know anything about the scanner, let alone distinguish one from the other.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question