For some reason that is not working for me. I am writing my script in vb.net. Maybe that is why it isn't working? Do you have any other suggestions?
Thanks! -- Bill Palmer Financial Systems Analyst Mid-Columbia Medical Center 541-296-7417 >>> On 9/30/2009 at 4:33 AM, in message <[email protected]> wrote: > Greetings, > Glad you pointed this out - I will have my example below added to the > documentation and website. > Anyhow, to make a long story short, what's going on is a dropdown (File > name, file type etc are) is opening - that's the message you're seeing. > > Why? Because dropdowns always have button - the arrow to the right of > the text - that is programmatically named Open. > > This worked for me to filter out the dropdown's open and just click the > open button you actually want. > > SmartDialog("Open", "File name:<Editable text>").Value = "whatever" > SmartDialog("Open", "Open<Push button>#focusable default#").Click > > > Regards, > Thom > > Thom C. Blackwell > Product Manager > Boston Software Systems > (866) 653-5105 ex 807 > www.bossoft.com > > Sign up for my weekly webinar! > > LEGAL NOTICE Unless expressly stated otherwise, this message is > confidential and may be privileged. It is intended for the addressee(s) > only. Access to this E-mail by anyone else is unauthorized. If you are > not an addressee, any disclosure or copying of the contents of this > E-mail or any action taken (or not taken) in reliance on it is > unauthorized and may be unlawful. If you are not an addressee, please > inform the sender immediately, then delete this message and empty from > your trash. > > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Tuesday, September 29, 2009 6:17 PM > To: Talk > Subject: [talkbws] Re: Tech tip - Save As dialog / Meditech WorkStation > Connections dialog > > I am writing a script in Meditech Magic in the GL module. Option 12. > Read Batches From PC File when selected opens a Windows file Open > dialog. I am using the following 2 lines: > > w.SmartDialog("Open", "File name:<Editable text>").Value = _reportPath & > theFile.Name > w.SmartDialog("Open", "Open<Push button>").Click() > > The first line works fine, inserting the correct file name into the file > name box. The second line does not work. A message flashes on the > dialog box but it happens too quick to tell what it is. Does anyone > have any idea why this isn't working or better yet how to make it work? > > Thanks! CONFIDENTIALITY NOTICE: This e-mail message (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any unauthorized review, use, disclosure, dissemination, copying, forwarding or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient but do not wish to receive communication through this medium, please advise the sender immediately. --- 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.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
