(Win2000, BWS 6.5 rev 118, VBA, working with Meditech Magic 4.9, Meditech NUI Workstation and HSS WinStrat ver 0304 applications)
Is there any way for a script using VBA to capture a response to an application generated MsgBox? I am working on an interactive interface, and there are some warning and other message boxes that the user wants the script to stop so they can respond. In order to serve my user well, I would like to be able to continue with the script if the answer to the application's MsgBox is such that it would be reasonable to do so. And since a MsgBox has buttons and not fields, I am not sure how to capture a mouse click, or a 'Y' or 'N', or whatever letter. I have thought of a couple of workarounds, such as pausing when an application message box is displayed, and having the script display its own message box, then making the decision on the users answer to the script generated message box. But the users think that this is too confusing because there would be 2 message boxes displayed and deciding which to answer, etc. And, remember, I am using VBA, not VB6 or .NET. So, can I trap the keystroke that is returned to the application and use it in my script? (AND if this is an easy answer, please be kind; it has been a long day, and my brain is fried! TIA for your kindness!) :-) TKs Lew Hundley Information Specialist - Programmer Silverton Hospital Silverton Oregon 503.873.1657 [EMAIL PROTECTED]
