A couple of years ago I got a free CueCat USB barcode reader. I did some stuff so I could use it on my Mac. Well, I wanted to use it on Mac OS X, so I grabbed the old script, installed Barcode::Cuecat, modified my little script to save to the Mac OS X clipboard, and away I go.
use Barcode::Cuecat;
my $bc = new Barcode::Cuecat;
print "Type 'q' to quit.\n" if $c;
while (chomp(my $data =
$bc->scan($data);
printf "%s: %s\n", $bc->type, $bc->code;
if ($p) {
open my $clip, '|pbcopy' or die $!;
print $clip $bc->code;
close $clip;
}
last unless $c;
}
Usage:
And then "086441950" is put onto the clipboard (BTW, that is a scan of the new TV Guide with Aragorn on the cover ... no, YOU'RE a geek!). Also, since I am using ClipboardSharing, I keep the reader connected to my server at my desk, and after running this program, it automatically sends the clipboard to my main workstation. ClipboardSharing is way neat.
It is very good to see that the CueCat is still in style. Now I know that I am not the one that still uses a CueCat (or two)!
I quickly pulled both of mine apart just as soon as I received them. I had to add a jumper to each of them so that I would not have to do the software decoding of the data.
Re:CueCat Still in Style
drhyde on 2003-12-13T18:05:40
I use one too, with Readerware.Re:CueCat Still in Style
Robrt on 2003-12-23T19:51:18
I'd love to get my hands on a USB CueCat. My PS2-passthrough one hasn't been used in a while.. mostly because I don't use PS2 devices anymore.
Anyone wanna trade?
Re:CueCat Still in Style
Mr. Muskrat on 2003-12-24T00:17:12
All of mine are PS2. Have you tried an eBay search for 'usb cuecat'?