AnsweredAssumed Answered

AW: vrf barcode problem

Question asked by VRFuser on Feb 8, 2002
Hi Jyrki,

you have to use following functions:

short __stdcall GetAsyncKeyState(int);
Call this function in VEE to test if left mouse button is pressed:
bit(GetAsyncKeyState(1), 15)==1?

Getting actual mouse pointer:
int _stdcall GetCursorPos(long *lppoint);

Call this function in VEE with
Input=Int32-Array with two elements.
Output=Int32-Array with two elements (first x-position, second y-position).

Hope this helps

Jens


> -----Ursprngliche Nachricht-----
> Von: Jyrki Tujula/Dosesoft Oy [mailto:jyrki.tujula@dosesoft.fi]
> Gesendet: Freitag, 8. Februar 2002 15:15
> An: Jens Fischer
> Betreff: RE: vrf barcode problem
>
>
> Hello Jens!
>
> Thanks for Your response.
> Do You have any examples to do these things?
> One problem seems to be to get handle to certain text constant.
>
>
> Regards
> Jyrki
>
> -----------------------------
>
> -----Original Message-----
> From: Jens Fischer [mailto:fischer@somatec.de]
> Sent: 8. helmikuuta 2002 15:34
> To: VEE Usergroup (E-Mail)
> Subject: AW: vrf barcode problem
>
>
> Hello,
>
> one possibility is to move the mouse pointer to the text
> constant and to simulate a mouse click by using
> user32-functions. It's not very convenient, but it works.
>
> Regards
>
> Jens
>
> --------------------------------------------
> Dipl.-Ing. Jens Fischer      
>
> SOMATEC - Software fr Maschinensteuerungen
> und Automatisierungstechnik GbR
>
> Jagdweg 7a
> D-82041 Deisenhofen
>
> Tel.:     (089) 613 984 93
> Fax:      (089) 613 981 23
> E-mail:   Fischer@somatec.de
> Homepage: http://www.somatec.com
> --------------------------------------------
>
>
> > -----Ursprngliche Nachricht-----
> > Von: owner-vrf@lvld.agilent.com
> [mailto:owner-vrf@lvld.agilent.com]Im
> > Auftrag von Jyrki Tujula/Dosesoft Oy
> > Gesendet: Freitag, 8. Februar 2002 13:50
> > An: 'vrf@lvld.agilent.com'
> > Betreff: vrf barcode problem
> >
> >
> > VEE users,
> >
> > I should do my VEE-program so that it could support bar code reader.
> > Only problem is that it is not convenient way to set focus
> > from outside to
> > text constant when needed.
> > (For example if I change user from selection control, focus should
> > move to text control without need to click it)
> >
> > Has anybody done, for example, ActiveX object (editbox) which
> > could handle
> > this problem?
> > 
> >
> > Any kind of help is appreciated !
> >
> >
> > Thanks in advance
> >
> > Jyrki
> >
> ---------------------------------------------------------------------
> > This is the "vrf" maillist, managed by Majordomo.  To send
> messages to
> > this maillist, just email to "vrf@lvld.agilent.com". 
> > Subscriptions and
> > unsubscriptions are done through the address
> > "vrf-request@lvld.agilent.com".
> > If you need details, just send a message containing the text "help"
> > to "vrf-request@lvld.agilent.com".
> >
> ---------------------------------------------------------------------
> >
>

Outcomes