>From the Customer center: Using Smart Dialog for Internet Explorer common windows dialogs The Save As dialog and similar common windows dialogs can be scripted using the SmartDialog command. You need to use an Activate command for the caption of the dialog prior to executing the command. For example: Activate "Save As",True It is important that Improve Activate has been run on the PC (see Programs -> Boston WorkStation->Utilitles)
SmartDialog basically allows the use of Smart methods and properties without
needing a Windows connection:
.Value=
.Click
.DoAction
stateText= .StateText
So as you can see, the command really returns a Smart object that points to the
desired component - with all caviots surrrounding the ability of the command to
do it's job.
The command has 2 main parameters:
sCaption
sName
sCaption is what you would use for an Activate or Windows connection to the
desired application
sName is the Find string for the component you wish to interact with using
SmartDialog.
So for example to fill in the file name field in the Save As dialog box, the
command would be:
SmartDialog("Save As", "File name:<Editable text>").Value =
"c:\TEST.txt<file:///c:\TEST.txt>"
File name:<Editable text>" is retrieved using a Windows connection to the
desired application and using Smart.
Paul-Michael Fernandez
Analyst, Data & System Solutions
SALUD Healthcare Solutions
T 765.637.2411
F 765.637.2401
C 765.532.6601
SaludSolutions.US
CONFIDENTIALITY NOTICE: This e-mail message, including all attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. If you are not the intended recipient, you may NOT use,
disclose, copy, or disseminate this information. Please contact the sender by
reply e-mail immediately and destroy all copies of the original message
including all attachments. Your cooperation is greatly appreciated.
From: [email protected] [mailto:[email protected]]
Sent: Monday, July 01, 2013 12:12 PM
To: [email protected]
Subject: [talkbws] Running the Save As from the Internet
Hi,
I am trying to write a script that downloads a weekly file. I migrate to the
site, choose the correct weekly file, and tell it to download without any
problem. When the "Save As" screen pops up, I am able to connect to it, and
enter the path/name of my file without any issues. However, I cannot get it to
save. I have tried clicking the save button as well as keying "%S" . Either
way works perfectly from my desktop but not from BWS. I have a lot of
experience writing BWS scripts for Meditech, but this is my first for the
Internet, so I may be overlooking something simple. Any ideas would be
appreciated.
[cid:[email protected]]
Thanks,
Darryl Clemmons
Systems Analyst
[http://intranet/hrmc/logo/email.JPG]
Phone - (252)535-8562
Fax - (252)535-8563
email - [email protected]<mailto:[email protected]>
Website - www.halifaxregional.org<http://www.halifaxregional.org>
The information contained in this e-mail message is intended only for use of
the individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender at the
above address/telephone number.
--- To post a message to this list, send mail to:
[email protected]<mailto:[email protected]> You are currently subscribed as:
[email protected]<mailto:[email protected]>
Unsubscribe in the customer center on our website:
http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx
--- To post a message to this list, send mail to: [email protected] You are
currently subscribed as: [email protected] Unsubscribe in the
customer center on our website:
http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx<<inline: image002.jpg>>
<<inline: image003.jpg>>
