Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Barcode Scanner
Message
 
À
03/03/2003 00:59:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00760252
Message ID:
00760387
Vues:
13
>dear all,
>
>i have a problem in using barcode scanner.
>i want my text box is cannot be input by keyboard, only with barcode scanner.
>i have tried to block the numeric keypad by disabling the num lock key.
>but still they can access with the numeric button above the character button.
>is there any trick to disable keyboard press, or disable the keyboard access.
>
>regards,
>
>
>Ivan Agusta

After reading the other replies I think I have found a way around this problem.
Using a barcode scanner the scanned barcode will be 'typed' into the text box very fast (compared to a user entering the barcode on the keyboard). So if you can somehow measure the time it takes from the first text box input until the last input you could determine if it was the scanner or the user using the keyboard. Might not be 100% accurate but the longer the barcode string is the more accurate it should be.

Just my $0.02

Einar
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform