Just to add my two pennies worth, my recollection of bar code scanners, there was a manual with the scanner, and all you did to program it was scan in a barcode from the manual!
And as rural guy says you will need to add the correct command to the number that the bar code scanner detects. Assuming that it is the typical "keyboard" barcode scanner of course.