Title: Message
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