barcode scanner

Ray Bennett rbennett at iel.ie
Sat Nov 27 16:32:19 EST 2004


Most barcode scanners can be programmed to send a 'preamble' string before the data that you scan.  This is how I differentiate input sources in my barcode app.

Another trick is to ensure you reset the focus to a text field after you are done processing the input.
Ray
..:From my Treo 600:..

---- Original Message ----
From: "kee nethery" <kee at kagi.com>
Date: 11/27/04 1:24 pm
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Subj: Re: barcode scanner

On Nov 27, 2004, at 10:04 AM, Michael D Mays wrote:

> The problem, I envision, is  when you integrate a keyboard with the 
> scanner.
>
> How can you differentiate between keyboard input and the input from 
> the scanner? Is there a way to tell whether the input is from a 
> scanner or the keyboard?

no there is no way to differentiate between a keyboard and scanner if 
the scanner is acting as a keyboard. If the scanner comes in via serial 
cable, then it is a set of data that your program needs to gather and 
deal with. In that case, the data is separate. For us, it's just a fast 
alternate keyboard that is used to enter specific information into one 
specific field. Once that information is entered, a script processes 
the bar code data and the cursor gets moved to another field where 
keyboard entries are done. Then when that set of data is saved, a new 
blank page gets created and the cursor goes into the field for the bar 
code data, and the scan process starts over.

Kee

_______________________________________________
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