Re: Way to read from USB port with Rev (Bar Code Reader)

2007-01-14 Thread Sarah Reichelt

On 1/14/07, Peter Alcibiades <[EMAIL PROTECTED]> wrote:

"say, can you tell me which barcode reader you've tried this with?"

Sure, its a Datalogic Gryphon.  Any reader which uses a Y cable to connect
should work however.

The only problem I can see with this method is that you have to ensure that
the window in which your data is going to be entered has focus.  And if the
user does something with the mouse or keyboard, those events will be
registered as well.  So maybe some sort of script is necessary when the Rev
application is opened that somehow locks down the input.  If its for your own
use rather than in a production environment that shouldn't be an issue.

The Gryphon is a nice piece of gear.  You press the trigger.  A light bar
shines out of the scanner end.  You move the light bar to the bar code, it
beeps, a green light appears, and the data appears in the field.   Pretty
robust and available used quite cheaply.



I use various barcode scanners (Datalogic, Unitech, Symbol) and they
all operate in the same manner - as a keyboard wedge. When the barcode
is scanned, the text of the code is sent to the computer exactly as if
the keys were being pressed, so as Peter says, you have to make sure
your application has the focus  - I have had the occasional problem
were the hard drive has been renamed :-)

Apart from that, I use the following scripts:

on keyDown theKey
   if the short name of this Stack = "vicMain" then
   if the hilite of btn "readCodes" of cd 1 then
   put theKey after fld "Barcode"
   else
   pass keyDown
   end if
   else
   pass keyDown
   end if
end keyDown

on rawKeyDown theKey
   if the short name of this Stack = "vicMain" then
   if theKey = 65293 and the hilite of btn "readCodes" of cd 1 then
   autoLog "Scan: " & fld "Barcode"
   put the short name of this card into cardName
   send "processBarcode" to cd cardName
   else
   pass rawKeyDown
   end if
   else
   pass rawKeyDown
   end if
end rawKeyDown


The keyDown script stores any text coming from the barcode scanner.
When the scanner finishes reading a code, it sends a key code of 65293
which is spotted by the rawKeyDown handler, which calls the relevant
script to handle the complete barcode.

I have a stack 
that tests the data coming from a barcode scanner, which you might
find useful.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Way to read from USB port with Rev (Bar Code Reader)

2007-01-14 Thread Peter Alcibiades
"say, can you tell me which barcode reader you've tried this with?"

Sure, its a Datalogic Gryphon.  Any reader which uses a Y cable to connect 
should work however.  

The only problem I can see with this method is that you have to ensure that 
the window in which your data is going to be entered has focus.  And if the 
user does something with the mouse or keyboard, those events will be 
registered as well.  So maybe some sort of script is necessary when the Rev 
application is opened that somehow locks down the input.  If its for your own 
use rather than in a production environment that shouldn't be an issue.

The Gryphon is a nice piece of gear.  You press the trigger.  A light bar 
shines out of the scanner end.  You move the light bar to the bar code, it 
beeps, a green light appears, and the data appears in the field.   Pretty 
robust and available used quite cheaply.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Way to read from USB port with Rev?

2007-01-02 Thread rgould8
 This is great advice - - - say, can you tell me which barcode reader you've 
tried this with? 

 -Original Message-
 From: [EMAIL PROTECTED]
 To: use-revolution@lists.runrev.com
 Sent: Tue, 2 Jan 2007 3:07 AM
 Subject: Re: Way to read from USB port with Rev?
 
  

[EMAIL PROTECTED] wrote:  Can anyone tell me if it's possible to write a 
Revolution app that pulls in data from the USB port? For instance, if I wanted 
to write an app that could read the barcode info from a USB-based barcode 
scanner, could I do that with Revolution? (like the "Intelliscanner" from 
http://www.intelliscanner.com/) I've written apps to read from the COM port 
before, but I've not tried a USB-port app.
 
The way to do this might be to use a bar code reader that looks to the computer 
like a keyboard.  It will not matter if it is USB.  Standard ones using the AT 
connector often go on a Y type connector, so that either the keyboard or the 
reader can enter data.

If you do this, it doesn't matter what the application is or even what the OS 
is.  You do not need any drivers (other than OS support for USB keyboards).   
You just need the cursor in the correct field, and then any triggers of the 
reader will put the read code, followed by ENTER, into it, and you handle it as 
needed.

I have not tried this yet in Revolution, but have verified that a Y connected 
reader which emulates a keyboard will supply data to a spreadsheet in both 
Windows or Linux, and to any of several word processors, so am sure that if the 
cursor is in an editable Rev field, the data will arrive. 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
   

Check out the new AOL.  Most comprehensive set of free safety and security 
tools, free access to millions of high-quality videos from across the web, free 
AOL Mail and more.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Way to read from USB port with Rev?

2007-01-02 Thread palcibiades-first


[EMAIL PROTECTED] wrote:  Can anyone tell me if it's possible to write a 
Revolution app that pulls in data from the USB port? For instance, if I wanted 
to write an app that could read the barcode info from a USB-based barcode 
scanner, could I do that with Revolution? (like the "Intelliscanner" from 
http://www.intelliscanner.com/) I've written apps to read from the COM port 
before, but I've not tried a USB-port app.
 
The way to do this might be to use a bar code reader that looks to the computer 
like a keyboard.  It will not matter if it is USB.  Standard ones using the AT 
connector often go on a Y type connector, so that either the keyboard or the 
reader can enter data.

If you do this, it doesn't matter what the application is or even what the OS 
is.  You do not need any drivers (other than OS support for USB keyboards).   
You just need the cursor in the correct field, and then any triggers of the 
reader will put the read code, followed by ENTER, into it, and you handle it as 
needed.

I have not tried this yet in Revolution, but have verified that a Y connected 
reader which emulates a keyboard will supply data to a spreadsheet in both 
Windows or Linux, and to any of several word processors, so am sure that if the 
cursor is in an editable Rev field, the data will arrive. 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Way to read from USB port with Rev?

2007-01-01 Thread rgould8
 Can anyone tell me if it's possible to write a Revolution app that pulls in 
data from the USB port? For instance, if I wanted to write an app that could 
read the barcode info from a USB-based barcode scanner, could I do that with 
Revolution? (like the "Intelliscanner" from http://www.intelliscanner.com/) 
I've written apps to read from the COM port before, but I've not tried a 
USB-port app.
 
 
  

Check out the new AOL.  Most comprehensive set of free safety and security 
tools, free access to millions of high-quality videos from across the web, free 
AOL Mail and more.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution