Thanks George!

 

Use of GUIs has mushed my brain, and I should have known better.

 

For those of you out there that have been raised on GUI, don’t forget that there are usually multiple ways to accomplish a task in a GUI.

 

I had tunnel vision when I sent this email, thinking that I had to select a folder from the drop down list in Save In. WRONG!

 

What George’s solution does is use the File Name text box, which, in addition to taking just the file name, will take a complete path and ignore the folder in the Save In text box. I tested it, and shore ‘nuf, it works like a charm.

 

Thanks again, George. There is always more than one way to skin a cat…

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 George Winterberg
Sent: Tuesday, January 06, 2004 2:45 PM
To:
'[EMAIL PROTECTED]'
Subject: RE: [Talk] "Save As" in BWS

 

Lew,

 

I have a script that runs NPR reports in Meditech and downloads them to files on a PC. The way my script handles the save as window in as follows:

            Const FilePath = "C:\Whatever path you want"

_______________________________________________________________________

 

Pause "Save [EMAIL PROTECTED],1"

Wait 3

Activate "Save As"

Wait 1

SendKeys FilePath

SendKeys YourFileName + "{ENTER}"

 

 

I hope this helps,

George Winterberg

System Analyst

Saint Anthony's Health Center

[EMAIL PROTECTED]

(618) 463-5311

 

 

-----Original Message-----
From: Lew Hundley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 3:55 PM
To: [EMAIL PROTECTED]
Subject: [Talk] "Save As" in BWS

 

And a Happy New Year to you all!

 

Anyone out there that would like to share some scripting code?

 

I am writing a script for a non-Meditech application, where I am using the application's report functionality to create a file that I will be using later for comparison. I want to save the report file in a particular folder, so I need to navigate the Save In: drop down menu in the Save As window. I know that I should be using this as a learning experience, but I really don't have the time unless I really have to make it.

 

Has anyone written code to navigate a drop down menu, especially Save In?

 

My guess is that it is similar to what I have done in our Meditech Magic application, but I have worked very little with C/S and BWS scripting.

TKs

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

 

DISCLAIMER:
This message, including any attachments, is intended for the sole use of the individual to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.

Reply via email to