Title: Message
Are you trying to shutdown Boston Workstation or are you trying to detect if Meditech is shutdown?
 
Thanks,
Corinna Robertson
 
Boston Software Systems
The Essential Tool for Healthcare Integration
866-653-5105 ext. 8
508-653-5105
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Turner, Peter
Sent: Friday, July 16, 2004 9: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