My son actually taught me this.  Why he would be knowing this stuff is
beyond me....
He's been programming since he was 8 ( I think he's the result of an alien
abduction ).

O.K.  enough of that, onto the reason you're reading this e-mail....

So here's the tip.   If you want to have your VB form stay in the foreground
even when another window is active and receiving scripting commands, add the
following two lines of code to your form.

'The 1st line goes in the Declaration Section,
Private Declare Function SetWindowPos Lib "user32" (ByVal hWnd As Long,
ByVal hwndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As
Long, ByVal cy As Long, ByVal wflags As Long) As Long

'The 2nd line goes in the Form Load Event and is the code that makes the
window stay on top.
 SetWindowPos Me.hWnd, -1, 0, 0, 0, 0, 2 Or 1

'If you want a technical explanation of you this code works, go to
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:
80/support/kb/articles/q184/2/97.asp&NoWebContent=1

or do a search for VB+SetWindowsPos on the internet

Have fun, and I hope you find this useful!

Paul

P.S. Lew this is the code I told you about.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Smith, Kristie L.
Sent: Monday, October 06, 2003 1:58 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [Talk] Meditech / PYXIS interface

you are so smart!

> -----Original Message-----
> From: Sara McNeil [SMTP:[EMAIL PROTECTED]
> Sent: Monday, October 06, 2003 3:38 PM
> To:   [EMAIL PROTECTED]
> Subject:      RE: [Talk] Meditech / PYXIS interface
>
> Lew,
>
> This is not exactly what you are looking for but I believe close.  I did
an interface to Parex (similar to Pyxis > ->  but for supplies).  It
receives HL7 files from Parex and enters it into Meditech.  The script is up
on the customer page.
>
> Sara
>
> Sara McNeil
> Boston Software Systems
> www.bostonworkstation.com <http://www.bostonworkstation.com>
> The Essential Tool for Healthcare Integration
> Toll Free:866 653 5105
> Direct:508 653 5105
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lew Hundley
> Sent: Monday, October 06, 2003 4:23 PM
> To: [EMAIL PROTECTED]
> Subject: [Talk] Meditech / PYXIS interface
>
> We are 4.9 Magic.
>
> Looks like we will be getting some PYXIS med dispensing equipment and that
an interface to Meditech is in order.
>
> Anyone out there used BWS to interface to / from PYXIS (there is a PYXIX
API, I am told) to Meditech?
> How long did it take (whole project, script to live; be honest about the
testing, please)?
> Any gotchas?
> Any warnings you wish to pass on.
> TKs
>
> Lew Hundley
> Information Specialist - Programmer
> Silverton Hospital
> Silverton Oregon
> 503.873.1657
> [EMAIL PROTECTED]
>
>
>

Reply via email to