UPC or Barcode Scanners
Ray Bennett
smilingeyes at mac.com
Fri Nov 1 14:06:01 EST 2002
I use a WASP USB barcode scanner in a HyperCard application that I'm
porting to Rev. Haven't ported it yet, but see no reason it _shouldn't_
be straightforward. The trick is that the scanner is programmable.
Meaning that you can program it to send a preamble (read, "handler
name") when it reads a code. For me, I just named the preamble "wasp".
Then, in my Home stack (main stack in Rev), I have the handler "on wasp
barcode".
When you "gun" a code, the barcode reader sends keyboard input that
looks like this:
wasp "Francis Bacon 125"
I put the "on wasp" handler at the top of the hierarchy so that all of
my substacks could avail themselves of it.
Hope this helps.
Ray
Roger.E.Eller at sealedair.com wrote:
>Has anyone used Revolution to capture input from barcode readers/scanners
>connected via serial or USB? I have tried without success. The unit beeps,
>telling me the UPC is valid, but I get no text in my field. I have tried
>the examples on opening and reading from serial ports in the Rev help. I
>also tried the TEST SERIAL Rev app that was provided here on the list
>several months ago. Is there a preferred type or brand of UPC scanner that
>works best with Rev? Is there some sample scripts available that does this
>sort of thing that I could use as a guide/tutorial?
>
>Kind Regards,
>Roger Eller
>roger.e.eller at sealedair.com
>
>
>
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
More information about the use-livecode
mailing list