I've used it a couple of times, it's a real life saver.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lew Hundley
Sent: Thursday, July 31, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] Traping application keystrokes.

Thanks Rich,

I unzipped it, and read the doc, and it appears to be what I am looking
for. Nice tool.

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton Oregon
503.873.1657
[EMAIL PROTECTED]



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich McNeil
Sent: Wednesday, July 30, 2003 7:05 PM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] Traping application keystrokes.

Try our KeyHook routine.  It captures key presses and mouse clicks (it
also delays and swallows them if necessary).  It's delivered in
Keyhook.zip which includes documentation and the keyhook.exe server.  It
works equally well with VB6 and VBA (and, with a little work, VB.NET).

Rich McNeil
Boston Software Systems
866 653 5105
www.bostonworkstation.com


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lew Hundley
Sent: Wednesday, July 30, 2003 6:34 PM
To: BostonWorkStation Talk
Subject: [Talk] Traping application keystrokes.

(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]






Reply via email to