Look on the next link, examples of a projet CueCat. On this How-to you have some scripts (perl, python, tcl, javascript, ...) for use scanner barcode. Without driver because it use the same communication that a keyboard.