Kevin - It's not the about workstation box, but I think this logic may work. If I remember right, I don't think the "OK" message box has a title. Since it is a Meditech message box, and it is always on top if I switch the focus to Meditech, I may be able to just switch the focus to the Meditech window and enter through the ok box to get rid of it. I wonder if I just send an "enter" if BW will send it to that window without having to change the focus. I guess that will leave me with the problem of how to detect when that box is up on the screen. I may have to just assume if it doesn't see what it is looking for at the end of the "paste" operation that it just hits enter to get rid of any possible error box and then back itself all the way out and log back in to retry the operation. I'll give it a shot and let you know. Thanks! John
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Kevin Meagher
Sent: Tue 12/23/2003 1:35 PM
To: [EMAIL PROTECTED]
Cc:
Subject: RE: [Talk] Meditech - Host Computer not Responding message
John,
Is the separate message window you are referring to an "About Workstation"
box? If so, this may help:
(In your Declarations section)
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal
lpClassName As String, ByVal lpWindowName As String) As Integer
(in your script)
If FindWindow(Nothing, "About Workstation") <> 0 And Active()
Connect("About Workstation", stWindows)
Enter() ' Press OK to clear the box
End If
I use something similar to this to detect MEDITECH login problems and have my
script clear the About Workstation box, close the Workstation Connections window, wait
five minutes and try logging in again. Your mileage may vary.
Kevin Meagher
Mid-Columbia Medical Center - Information Systems
>>> [EMAIL PROTECTED] 12/23/03 10:38AM >>>
Rich -
I would do it this way, but what happens is when the Host computer is not
responding message comes up, it is some sort of seperate message window from the
actual workstation program and not meditech itself. I can't figure out a way to check
for this window. The other problem that I run into is once I click ok (the only
option) on this box the screen clears and the display is all screwed up so it doesn't
know what is going on other than the cursor is now in the top left hand corner of the
screen. It seems to follow whatever template was on the screen when it happened, but
the screen doesn't fix itself until you actually log out of Meditech and back in. If
I could figure out a way to detect when this box comes up I could send the keys to
cancel the current report and just re-enter all the info again fairly easily.
John
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rich McNeil
Sent: Tuesday, December 23, 2003 12:31 PM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] Meditech - Host Computer not Responding message
I know this is not good news, but I think you'll need to slow down the
keying. I've seen this happen on old serial connections, but I see it's
also possible when any communication channel is overflowed.
Perhaps a better approach is to let it fail...and if it fails for this
reason, try it again...if it still fails...slow it down.
Rich McNeil
Boston Software Systems
866 653 5105
www.bostonworkstation.com
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hayman
Sent: Tuesday, December 23, 2003 12:56 PM
To: [EMAIL PROTECTED]
Subject: [Talk] Meditech - Host Computer not Responding message
Has anyone come up with a good way of trapping the "Host computer is not
responding" message from Meditech or better yet, preventing it? It only
happens when I am enter text into the free text area of OE via the
script. Apparently it sends this message when Meditech is not able to
keep up with the data being sent. I don't get it all the time, but it
seems when the network is running slow it does this.
Thanks in advance,
John
<<winmail.dat>>
