Make sure you are pausing long enough before the dialog pops up for it to
recognize the text.

Off the top of my head I know the dialogs usually appear @1,1 so make sure
that is being specified at your IF AT statement as well.

Hope that helps!

-Allen

-----Original Message-----
From: Peter Charbonnier [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005 9:06 AM
To: [email protected]
Subject: [Talk] Handling possible dialog boxes in MeditechNUI

Hello,

I'm writing a script which may or may not encounter a dialog box in
Meditech NUI.  What I want to happen is, if the dialog box appears,
for the script to key a "Y".  If the dialog box does not appear, then
it should key in the value from my spreadsheet as normal.  Here's what
I have:

 Enter D("Value")
   If At("@_DIALOG:") Then
   Key "@_DIALOG:{Y}"
   End If
 Pause "@7,14"

My problem is that with this, it fails to recognize the IF statement
entirely.  The dialog box pops up and my script is waiting to pause at
7,14.

Does anyone know how to handle possible dialog boxes in Meditech NUI?

Thanks,
Peter Charbonnier
Overlake Hospital

Reply via email to