I tried the Key {"ESC"} multiple times, and although it logged off the system, the 
script  still considered itself running.  When I removed the excess {ESC} keys, to 
give it only exactly the number it needed, the script completed correctly.

Denise Morrill
Spring Harbor Hospital

-----Original Message-----
From: Rich McNeil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 12:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] log off


Joe, 

The Active might take more than a few seconds to become accurate after
shutdown.  As an alternative, how about:

WS.Key "{Esc}{Esc}{Esc}{Esc}{Esc}{Esc}" 

I'd be interested to see whether this works.  Would you let us know?

Rich McNeil
Boston Software Systems
866 653 5105
www.bostonworkstation.com
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe Strauss
Sent: Wednesday, June 02, 2004 10:45 AM
To: [EMAIL PROTECTED]
Subject: [Talk] log off


My script to log out of a Client/Server session is sometimes having
problems. It looks something like this (using VB6):

Do
  WS.Key "{ESC}"
  WS.Wait 2
Loop Until Not (WS.Active)

 I have a suspicion that the 'Active' is not always correct. Is there
another way to check if the session is still active or maybe a better way to
log out and close out the session?

Thanks.

Joe Strauss
Senior Programmer/Analyst
Specialty Laboratories @ <www.specialtylabs.com>
(310) 828-6543 ext. 1240 
CONFIDENTIAL NOTICE: This email message, including any attachments, is intended only 
for the use of the  
intended recipient(s) and may contain information that is privileged, confidential and 
prohibited from unauthorized disclosure under applicable law. If you are not the 
intended recipient of this message, any dissemination, distribution or copying of this 
message is strictly prohibited. If you received this message in error, please notify 
the sender by reply email and destroy all copies of the original message. 
  
Spring Harbor Hospital         Maine's Mental Health Network 

Reply via email to