Home All Groups Group Topic Archive Search About
Author
18 Jul 2006 5:44 PM
Samuel Shulman
I assume that when I use a barcode reader (at least some of them) it will
input the number as though it was entered in via the keyboard

How can I then get the value without setting to focus to a textbox control I
don't want the user to see the scanned number but I still need a way to read
the value, in addition, I need an event that will be fired once the barcode
was read in full so I know it actually finished reading

Thank you,
Samuel

Author
18 Jul 2006 6:39 PM
iwdu15
Author
19 Jul 2006 2:33 PM
Brian Tkatch
Samuel Shulman wrote:
> I assume that when I use a barcode reader (at least some of them) it will
> input the number as though it was entered in via the keyboard
>
> How can I then get the value without setting to focus to a textbox control I
> don't want the user to see the scanned number but I still need a way to read
> the value, in addition, I need an event that will be fired once the barcode
> was read in full so I know it actually finished reading
>
> Thank you,
> Samuel

Just a guess.

On the form's keypress start a one-second timer and capture all keys.
In the timer tick event, (turn the timer off and) validate the keys. If
it is a barcode, deal with it, otherwise give focus and set the text
property to the captured keys.

Or something like that. That idea would need a lot of tweaking to
handle all cases.

B.
Author
19 Jul 2006 3:44 PM
Samuel Shulman
Thanks Brian,
any idea about a control that is invisible and may receive the key strokes?


Show quoteHide quote
"Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message
news:1153319583.137200.120760@b28g2000cwb.googlegroups.com...
>
> Samuel Shulman wrote:
>> I assume that when I use a barcode reader (at least some of them) it will
>> input the number as though it was entered in via the keyboard
>>
>> How can I then get the value without setting to focus to a textbox
>> control I
>> don't want the user to see the scanned number but I still need a way to
>> read
>> the value, in addition, I need an event that will be fired once the
>> barcode
>> was read in full so I know it actually finished reading
>>
>> Thank you,
>> Samuel
>
> Just a guess.
>
> On the form's keypress start a one-second timer and capture all keys.
> In the timer tick event, (turn the timer off and) validate the keys. If
> it is a barcode, deal with it, otherwise give focus and set the text
> property to the captured keys.
>
> Or something like that. That idea would need a lot of tweaking to
> handle all cases.
>
> B.
>
Author
19 Jul 2006 4:20 PM
Dick Grier
Hi,

IMO, attempts to do this (setting focus to a textbox or other object to
receive the scans) is doomed to "limited" success.  The best solution, IMO,
is to insist on a serial barcode reader (or a USB reader that provides a
serial -- not HID emulation).  Then, no matter what the user does, the scans
will be delivered to the appropriate code for processing.  Fortunately,
serial readers are not much more expensive that those that emulate a
keyboard (perhaps and extra $15), but the operational experience is MUCH
better.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Author
19 Jul 2006 5:06 PM
Brian Tkatch
Dick Grier wrote:
> Hi,
>
> IMO, attempts to do this (setting focus to a textbox or other object to
> receive the scans) is doomed to "limited" success.  The best solution, IMO,
> is to insist on a serial barcode reader (or a USB reader that provides a
> serial -- not HID emulation).  Then, no matter what the user does, the scans
> will be delivered to the appropriate code for processing.  Fortunately,
> serial readers are not much more expensive that those that emulate a
> keyboard (perhaps and extra $15), but the operational experience is MUCH
> better.
>
> Dick

Yep. Just like to say i agree with this sentiment.

B.
Author
19 Jul 2006 6:08 PM
Samuel Shulman
Please excuse me for being so naive (I am new to POS systems)
What is IMO and what is HID

Thanks,
Samuel


Show quoteHide quote
"Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message
news:uDI$080qGHA.2452@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> IMO, attempts to do this (setting focus to a textbox or other object to
> receive the scans) is doomed to "limited" success.  The best solution,
> IMO, is to insist on a serial barcode reader (or a USB reader that
> provides a serial -- not HID emulation).  Then, no matter what the user
> does, the scans will be delivered to the appropriate code for processing.
> Fortunately, serial readers are not much more expensive that those that
> emulate a keyboard (perhaps and extra $15), but the operational experience
> is MUCH better.
>
> Dick
>
> --
> Richard Grier, MVP
> Hard & Software
> Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
> Edition,
> ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
> 2006.
> See www.hardandsoftware.net for details and contact information.
>
Author
20 Jul 2006 8:35 PM
Brian Tkatch
Samuel Shulman wrote:
Show quoteHide quote
> Please excuse me for being so naive (I am new to POS systems)
> What is IMO and what is HID
>
> Thanks,
> Samuel
>
>
> "Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message
> news:uDI$080qGHA.2452@TK2MSFTNGP03.phx.gbl...
> > Hi,
> >
> > IMO, attempts to do this (setting focus to a textbox or other object to
> > receive the scans) is doomed to "limited" success.  The best solution,
> > IMO, is to insist on a serial barcode reader (or a USB reader that
> > provides a serial -- not HID emulation).  Then, no matter what the user
> > does, the scans will be delivered to the appropriate code for processing.
> > Fortunately, serial readers are not much more expensive that those that
> > emulate a keyboard (perhaps and extra $15), but the operational experience
> > is MUCH better.
> >
> > Dick
> >
> > --
> > Richard Grier, MVP
> > Hard & Software
> > Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
> > Edition,
> > ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
> > 2006.
> > See www.hardandsoftware.net for details and contact information.
> >

IMO is "In My Opinion"
HID is "Human Interface Device"

Q:What does PC-MCIA stand for?
A:People Can't Memorize Complex Industry Acronyms

BTW, a good URL is <URL:www.acronymfinder.com>, HTH.

B.
Author
20 Jul 2006 8:41 PM
Samuel Shulman
Thanks,

Samuel


Show quoteHide quote
"Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message
news:1153427737.786557.63290@m73g2000cwd.googlegroups.com...
>
> Samuel Shulman wrote:
>> Please excuse me for being so naive (I am new to POS systems)
>> What is IMO and what is HID
>>
>> Thanks,
>> Samuel
>>
>>
>> "Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message
>> news:uDI$080qGHA.2452@TK2MSFTNGP03.phx.gbl...
>> > Hi,
>> >
>> > IMO, attempts to do this (setting focus to a textbox or other object to
>> > receive the scans) is doomed to "limited" success.  The best solution,
>> > IMO, is to insist on a serial barcode reader (or a USB reader that
>> > provides a serial -- not HID emulation).  Then, no matter what the user
>> > does, the scans will be delivered to the appropriate code for
>> > processing.
>> > Fortunately, serial readers are not much more expensive that those that
>> > emulate a keyboard (perhaps and extra $15), but the operational
>> > experience
>> > is MUCH better.
>> >
>> > Dick
>> >
>> > --
>> > Richard Grier, MVP
>> > Hard & Software
>> > Author of Visual Basic Programmer's Guide to Serial Communications,
>> > Fourth
>> > Edition,
>> > ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised
>> > March
>> > 2006.
>> > See www.hardandsoftware.net for details and contact information.
>> >
>
> IMO is "In My Opinion"
> HID is "Human Interface Device"
>
> Q:What does PC-MCIA stand for?
> A:People Can't Memorize Complex Industry Acronyms
>
> BTW, a good URL is <URL:www.acronymfinder.com>, HTH.
>
> B.
>
Author
19 Jul 2006 5:04 PM
Brian Tkatch
Samuel Shulman wrote:
Show quoteHide quote
> Thanks Brian,
> any idea about a control that is invisible and may receive the key strokes?
>
>
> "Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message
> news:1153319583.137200.120760@b28g2000cwb.googlegroups.com...
> >
> > Samuel Shulman wrote:
> >> I assume that when I use a barcode reader (at least some of them) it will
> >> input the number as though it was entered in via the keyboard
> >>
> >> How can I then get the value without setting to focus to a textbox
> >> control I
> >> don't want the user to see the scanned number but I still need a way to
> >> read
> >> the value, in addition, I need an event that will be fired once the
> >> barcode
> >> was read in full so I know it actually finished reading
> >>
> >> Thank you,
> >> Samuel
> >
> > Just a guess.
> >
> > On the form's keypress start a one-second timer and capture all keys.
> > In the timer tick event, (turn the timer off and) validate the keys. If
> > it is a barcode, deal with it, otherwise give focus and set the text
> > property to the captured keys.
> >
> > Or something like that. That idea would need a lot of tweaking to
> > handle all cases.
> >
> > B.
> >

Nope.

I thought maybe the form got it first.

Either that or have one function handle all the form's control's
keypress events.

B.
Author
19 Jul 2006 4:56 PM
PGC
Hi Samuel,

A simple keyboard "wedge" type scanner will do what you want and most can be
programmed to send some "end of message" character although this is usually
a CR. Your keypress event can trap the EndOfMessage and then lookup the
product table (or whatever) as required. You will need to display the
textbox to capture the barcode data for a number of good reasons ...
The keyboard requires an input focus, the user gets the visual feedback
(good for problem solving), and finally, if the barcode is unreadable, (you
always get stuck behind these people at checkouts), the user at least has
the opportunity of keying it in!!

If you really don't want the gui to capture the barcode data then Dick's
suggestion (USB or Serial) port scanner is the best option but you will need
to learn about how to program for these (serial port) devices. You will also
need to figure out what to do about unreadable or mis-read codes.

Hope this helps.

Paul

Show quoteHide quote
"Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
news:uW%236UHpqGHA.644@TK2MSFTNGP05.phx.gbl...
>I assume that when I use a barcode reader (at least some of them) it will
>input the number as though it was entered in via the keyboard
>
> How can I then get the value without setting to focus to a textbox control
> I don't want the user to see the scanned number but I still need a way to
> read the value, in addition, I need an event that will be fired once the
> barcode was read in full so I know it actually finished reading
>
> Thank you,
> Samuel
>