Greetings,

If you are not connected to this window, then your approach below is the way
of going about it.

 

If you are connected, and what you want to know is "Did the connected to
application (not just that screen) go completely away" then you can use
Active - the Stream name parameter is optional.

               If not Active then

                               'Ok I'm done

               End if

 

Now, if the screen is going to go away, but you stay "in the application"
then you need to take a different approach - and your code is not a <bad>
way of doing it. But I would probably look for what happens when the window
goes away - since I'm going to be on a different screen and there could be
other things I need to do  on this screen anyway.

 

Regards,

Thom

 

 

Thom C. Blackwell

Product Manager

Boston Software Systems

(866) 653-5105 ex 807

www.bossoft.com <http://www.bossoft.com/> 

 

Visit us in Booth 2471 at HIMSS08 - February 25-28 in Orlando, FL

 

Sign <http://www.bostonworkstation.com/customer_center/special_events.aspx>
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.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Davy Montgomery
Sent: Friday, February 08, 2008 1:39 PM
To: '[email protected]'
Subject: [Talk] Wait for Window to Close

 

Hello all I have a basic question.  I want to wait for a window to close.
Currently I'm doing this I would love to know if there is a better way of
approaching the problem.  I'm still fairly new to the product and learning
my way around.  I wondered about using the "Active" command; but I wasn't
sure how I would know the name of the stream.

 

Dim WindowClosed As Boolean
WindowClosed = False
On Error Resume Next
Err.Clear
Do Until WindowClosed = True
    Activate "AdminaStar Federal Express"
    If Err.Number <> 0 Then
        WindowClosed = True
    End If
    Wait 30
Loop

 

 

Thanks,
Davy


CONFIDENTIALITY NOTICE: This email message, including attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and
destroy all copies of the original message.



Reply via email to