PDA

View Full Version : Accepting Scanned Code when Program doesn't have Focus



Cliff Little
31-May-2007, 05:19 PM
Firm has attendance program using scanner. All works well as long as
View is Focus. Should user minimize View to operate other Views in Program,
scan is of course directed to immediate view just as a keyboard would be.
Is there any particular method available to direct scanned data to
particular?

Peter Brooks
31-May-2007, 06:21 PM
Cliff,

I have a view called 'attendance' in my application. I have created an
optional 2nd program, which only has the one view. This then resrtricts
access to other parts of the program, and can stay maximised.


Peter Brooks
Downunder

Cliff Little
31-May-2007, 08:34 PM
"Peter Brooks" <phbrooks@optushome.com.au> wrote in message
news:LSjWUq9oHHA.1324@dacmail.dataaccess.com...
> Cliff,
>
> I have a view called 'attendance' in my application. I have created an
> optional 2nd program, which only has the one view. This then resrtricts
> access to other parts of the program, and can stay maximised.
>
>
> Peter Brooks
> Downunder

Stay maximised ..... are you scanning in badge numbers? And even though
it is maximised, I would think that operating another program changes the
Focus of the Desktop to the immediate view.
The problem suggest two answers as I can see it, though I am even
uncertain about my observations.

1) Does the scanner send anything different than a keyboard that
could be trapped and redirected?
2) Does the problem suggest the need for some kind of Virtual
Machine in the background that is awaiting input from a particular device.
It sounds like one of those ActiveX things. If so, this does not look like
a fun thing to do that was wanted yesterday.

Garret Mott
31-May-2007, 09:57 PM
Hi Cliff -

> Firm has attendance program using scanner. All works well as long as
> View is Focus. Should user minimize View to operate other Views in
> Program, scan is of course directed to immediate view just as a keyboard
> would be. Is there any particular method available to direct scanned data
> to particular?

With the low cost of PC's these days - what about just having a dedicated
machine for scanning? Wouldn't have to be anything fancy....

Just a thought -

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Anders Ohrt
1-Jun-2007, 02:10 AM
> Firm has attendance program using scanner. All works well as long as
> View is Focus. Should user minimize View to operate other Views in
> Program, scan is of course directed to immediate view just as a keyboard
> would be. Is there any particular method available to direct scanned data
> to particular?

You are using a wedge scanner, so it just emulates keyboard input. This
means you have very little control, so the best solution is to change to a
com-port connected scanner. This way, you install a com-port component and
it sends you a message every time something is scanned. You can then send
this to what ever view you want. You don't even need a form to take the
input, or even a view at all if you don't want to.

Of course, if it is not possible to change the existing customer, the other
answers in this thread is better.

// Anders

Peter Brooks
1-Jun-2007, 02:13 AM
I can have 2 VDF programs running. The focus is the Attendance screen in
most cases. This is the one the attendees see. They just scan in their card
or some one can type in their number (or look it up). It is just left
maximized. There are no Active-x's. The scanner acts just like a keyboard.
An autoreturn is done in the form.

Cliff Little
1-Jun-2007, 10:24 AM
Exactly what I said to the Comtroller ... Miss Penny! This lady can
squeeze a nickel so hard that the Indian cries and the buffalo sh**s! Looks
to be the best alternative, but still for the real pros like yourself & PD
and others I read, I know that in the end, at some time, one of you will
have an answer which will open the door to other application solutions.
Really would be lost without this NG.

"Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
news:eEMGbi$oHHA.2832@dacmail.dataaccess.com...
> Hi Cliff -
>
>> Firm has attendance program using scanner. All works well as long as
>> View is Focus. Should user minimize View to operate other Views in
>> Program, scan is of course directed to immediate view just as a keyboard
>> would be. Is there any particular method available to direct scanned data
>> to particular?
>
> With the low cost of PC's these days - what about just having a dedicated
> machine for scanning? Wouldn't have to be anything fancy....
>
> Just a thought -
>
> Garret Mott
>
> Auto-Mate Software www.automatesoftware.com
> Northeast DataFlex Consortium www.nedataflex.com
>
>

wila
1-Jun-2007, 10:57 AM
Cliff,

Well i have this type of thing built into my dbviews/dialogs using a
wedge handscanner... the class just catches the event for the currently
active view, but it should be easy to change this so that it is always
redirected to the same view. (Search in this group on my name feb 17 2006)

However -as has been pointed out- this does not catch the case that
happens when an application doesn't have the focus.
You could make your application have "on top" functionality to make it
more likely to have the focus. Or you could use Citrix/RDP in
application mode and only allow that one application.

Plenty of ways to skin the cat.
--
Wil

Cliff Little wrote:
> Exactly what I said to the Comtroller ... Miss Penny! This lady can
> squeeze a nickel so hard that the Indian cries and the buffalo sh**s! Looks
> to be the best alternative, but still for the real pros like yourself & PD
> and others I read, I know that in the end, at some time, one of you will
> have an answer which will open the door to other application solutions.
> Really would be lost without this NG.
>
> "Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
> news:eEMGbi$oHHA.2832@dacmail.dataaccess.com...
>> Hi Cliff -
>>
>>> Firm has attendance program using scanner. All works well as long as
>>> View is Focus. Should user minimize View to operate other Views in
>>> Program, scan is of course directed to immediate view just as a keyboard
>>> would be. Is there any particular method available to direct scanned data
>>> to particular?
>> With the low cost of PC's these days - what about just having a dedicated
>> machine for scanning? Wouldn't have to be anything fancy....
>>
>> Just a thought -
>>
>> Garret Mott
>>
>> Auto-Mate Software www.automatesoftware.com
>> Northeast DataFlex Consortium www.nedataflex.com
>>
>>
>
>

Garret Mott
1-Jun-2007, 11:49 AM
Hi Cliff -

> Exactly what I said to the Comtroller ... Miss Penny! This lady can
> squeeze a nickel so hard that the Indian cries and the buffalo sh**s!
> Looks to be the best alternative, but still for the real pros like
> yourself & PD and others I read, I know that in the end, at some time, one
> of you will have an answer which will open the door to other application
> solutions.
> Really would be lost without this NG.
>

First off, I wouldn't put myself anywhere near the level of many of the
others in this NG (the poster below this for example) & I too would be lost
without these NG's & Wasp.

My separate computer approach was because of my strong belief in the KISS
rule. By the time you've put together everything necessary to ensure the
scans go to the correct view I believe way more would've been spent. There
must be an old computer (one that was recently replaced, maybe?) kicking
around that could do the job. Heck, I have a client running 3 ME machines!

While I don't know your setup, it seems to me that another advantage to a
separate computer would be that the user wouldn't be interrupted by people
scanning right at their desk.

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Garret Mott
1-Jun-2007, 11:50 AM
And the poster above!

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Cliff Little
1-Jun-2007, 04:06 PM
Actually .. there's the guys like me who have questions and the small
cadre of people who are kind enough to have answers. Without the answer
guys, the rest of us would be in serious difficulty. You name and PD and
Wil and several others are the points at which my eye says 'Read This!'
Thanx.

"Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
news:88tj7zGpHHA.2832@dacmail.dataaccess.com...
> And the poster above!
>
> Garret Mott
>
> Auto-Mate Software www.automatesoftware.com
> Northeast DataFlex Consortium www.nedataflex.com
>
>