Greetings,
There are a couple of ways of dealing with the Save As dialog box in this
situation (please note for those of you who are BOTH Meditech Client Server
and using BWS Version 8, that you don't need to do this since these "windows
style" dialog boxes are "native to the connection".
 
Way #1 - this is the most reliable since it uses an actual Boston
WorkStation connection to the screen:
First, be sure you have set the Stream Name when you connected to Meditech -
i.e. your connect command looks like: Connect "", stMeditech, "myStream"
Then when you have hit your F12 or whatever that brings up the Save As
dialog box use:
        V8 -    Activate "Save As", True
                Connect "Save As", stWindows
Now you are connected into the Save As dialog box with a BWS Windows
Connection
                Pause "Save [EMAIL PROTECTED]" 'these would come from the 
WorkStation
                Enter ..
                Basically commands that fill in the window
                Connect "myStream", stStream 
                Now you are connected back to Meditech
        V7:     
        On error resume next
        Do 
        Wait
        Activate "Save As"
        Loop until err=0
                Connect "Save As", stWindows
Now you are connected into the Save As dialog box with a BWS Windows
Connection
                Pause "Save [EMAIL PROTECTED]"
                Enter ..
                Basically commands that fill in the window
                Connect "myStream", stStream 
                Now you are connected back to Meditech

The second way is the "quick dirty way" that doesn't use a BWS connection
and therefore is less reliable:
Use the Activate detection routine as above:
Then use:
SendKeys "Whatever to send",True
...

As for the emailing part of your question:
Version 8 has a built in SMTP emailing capability - this has the added
benefit of not causing those security messages that you can get when writing
directly to the Outlook object. The setup of the emailing is pretty easy -
basically from Boston WorkStation select View - Messaging and you'll see the
messaging toolbar - and pretty much fill in the blanks.

Please note that the emailing - as with any other command, is available in
both the new Rules based scripting style and the "traditional/procedural"
scripting style!

Regards and happy scripting,
Thom


Thom C. Blackwell
Product Manager
Boston Software Systems
www.BostonWorkStation.com
866 653-5105 - ex 807
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger Tack
Sent: Monday, November 21, 2005 3:02 PM
To: [email protected]
Subject: [Talk] assistance using popup SAVE AS Microsoft window

I'm hoping someone out there will be able to offer some assistance
rather than me fumbling around.
 
We are a Meditech Magic site and I would like to know how you identify
the save as window and how you get around within the window.

I'm also wanting to know how I can e-mail through the script to an
outlook e-mail address.

If there are any archives that anyone knows about on the Boston site,
I'm willing to take a stab at this.

Thanks. 

Roger Tack
Sr. Programmer/Analyst
St. Joseph Regional Medical Center
208-799-5721



NOTE: This e-mail message may contain information that may be privileged,
confidential, and exempt from disclosure. It is intended for use only by the
person to whom it is addressed. If you have received this message in error,
please do not forward or use this information in any way. Delete it
immediately, and contact the sender as soon as possible by the reply option
or by telephone at the telephone number listed (if available). Thank you.



Reply via email to