Hi Lew,
Not sure if this is what you are looking for but what I do is copy the activate command and remove the piece that actually gives focus, I rename the procedure to myActivate and throuw it in my own toolbox module, this way I can check if it is active without making it active if it isn't.
 
Thanks,
Corinna Robertson
 
Boston Software Systems
The Essential Tool for Healthcare Integration
 866-653-5105 x 8
603-598-5122
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lew Hundley
Sent: Monday, February 16, 2004 6:14 PM
To: [EMAIL PROTECTED]
Subject: [Talk] I may be brain dead, or this is a legit question...

All,

 

I am writing a script that I want to start when a certain Meditech module is being run. And, because we are using NUI, I need to ensure that MeditechNUIServer is already running. I plan on having the user start using a desktop icon that is the MeditechNUIServer, but, you know how users like to circumvent rules!

 

Anyway, I want to check if MeditechNUIServer is running, then check to see if one of the module screen is up and running.

 

The way I know of to check for a stream is using Active and Not Active. But the Active command sets the focus to what you are checking. If the poor user is logging in or traversing a menu, then the focus shifts to MeditechNUIServer and the user’s screen no longer has focus.

 

Is there a way to check for MeditechNUIServer without it having, or giving it focus?

 

I can, if I must, skip the test for MeditechNUIServer, and go right to testing for the module screen, but then my script has the chance to not work.

 

Any suggestions?

TKs

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton
Oregon
503.873.1657
[EMAIL PROTECTED]

 

DISCLAIMER:
This message, including any attachments, is intended for the sole use of the individual to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.

Reply via email to