I know it's a pain in the neck but "shooting blind" hardly ever works (although it's worth a try). In the scripts we write we usually have a "Reset" subroutine that moves to an anchor screen (connecting and logging on if necessary) no matter where in the script we call it. It's usually a big loop of PauseLoop commands that list every screen and the key that gets to the anchor.
For this situation, the most reliable technique would be to call such a Reset subroutine and then call a explicit sequence of Pause's and Key's to log you off from the anchor screen. Rich McNeil Boston Software Systems 866 653 5105 www.bostonworkstation.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MORRILL,DENISE Sent: Wednesday, June 02, 2004 12:08 PM To: [EMAIL PROTECTED] Subject: RE: [Talk] log off 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
