Title: Message

I’d suggest adding explicit Pause or PauseLoop commands to exit the session, kind of a reverse of a login script.  I attempt the kind of “shortcut” your script shows whenever I can, but I almost always end up regretting it.

 

Rich McNeil

Boston Software Systems

866 653 5105

www.bostonworkstation.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Turner, Peter
Sent: Friday, July 16, 2004 8:57 AM
To: [EMAIL PROTECTED]
Subject: [Talk] Client Server shutdown

 

Meditech's scripting dll has a shutdown function:

 

Function MCSShutdown Lib "MCScript.dll" 

 

Is there something analogous in BWS?

 

I have been trying this:

 

    Do  
      If InStr(UCase(wso.View), UCase("Closed")) > 0 Then
        Exit Do
      End If
      wso.Key "{esc}"
      wso.Wait 2
      DoEvents
    Loop
 

But it seems to sometimes leave me in status of Keying ESC, yet the MT session is closed, so it ends up waiting for Godot.  BSW console does not seem to respond to stops, reset script doesn't get it either.  When it does this - not all the time either, by the way, I have to end task.   

 

Is there a better, more graceful way to bail out?

Reply via email to