It all depends on the barcode scanner used. I have worked with barcode scanners in the past, and they were "placed" between the keyboard and the PC. This means that they just supplied keyboard "clicks". They were programmed to give a tab character after the scanned data, so you could just put the focus on the first text box, and the scanner would fill it in and "tab" to the next one.