Greetings, The Activate command is the easiest way to tell if a window is active or not. To use:
Activate "Portion of Window Caption" The Activate has an optional Wait parameter, if set to True, it behaves like a Pause command - and responds to a Timeout interval as well If set to False, it will throw an error if the window is not found. To read the screen - use a View command - Highlight where you text shows up in the Application viewer and select View (icon with the "eye glasses") Regards, Thom Thom C. Blackwell Product Manager Boston Software Systems (866) 653-5105 ex 807 www.bossoft.com 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. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Williams Sent: Thursday, March 15, 2007 11:22 AM To: [email protected] Subject: [Talk] Active Windows Is there a way to poll for active windows. I want to be able to tell if a program is open or not before the script continues. Also, how do I go about reading text from the meditech workstation. I need to know what batch number is created each time the script runs. Thanks, Yopu guys have been a massive help so far! Gary
