1. How does a barcode scanner work?

barcode scanner picks up the black and white elements of the barcode which follow a specific algorithm that is turned into a corresponding text string by the scanner. Then this information is then sent over to your computer by the scanner no different than a standard keyboard does. And this string of text will populate where ever your cursor is on the screen at that time.