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