Roger, Another solution may be to use an older version of Meditech if you are Magic. I use version 2.17g for my scripts. This version of the Meditech does not do that external pop-up for the "save as" function. But you will need to modify your code a little after the DOWNLOAD command.
Tom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rodgers Chase Sent: Tuesday, March 20, 2007 1:16 PM To: [email protected] Subject: [Talk] "Save As" feature only works when computer is "unlocked"... I built a script to open Meditech and download a report to a location on our server. It runs great, when I execute it manually. However, when I schedule it to run at 6AM in the morning, it appears that my "locked" computer window is taking away the focus from the 'Activate "Save As"' line code within the script. Has anyone been able to work around this? Due to policy, our company computers "lock" after a certain time of inactivity. Here's the line of code that works only when ran when my computer is "unlocked": Enter "DOWNLOAD" Wait 0.4 Enter Stable 3 Activate "Save As" Stable 0.3 SendKeys (rptName) Stable 1 SendKeys ("%S") Activate "Save As" Stable 0.3 SendKeys ("%Y") Pause "End of report." Enter Wait 0.5 Any feedback is MUCH appreciated! Thanks, Chase Rodgers Financial Reporting Manager Medical Center of Plano *214-473-7490 [EMAIL PROTECTED]
