Sign in to follow this  
Followers 0
geekforu

is it possible to wait for any window (irrespective of title) till it opens completely

2 posts in this topic

is it possible to wait for any window (irrespective of title) till it opens completely ? I need to wait for the next window which opens and then check the title. There is possibility of two different windows being opened for 2 different scenarios when i click the same button. So i need to determine which scenario it is by checking the title of the window displayed. Thanks in advance

Share this post


Link to post
Share on other sites



You can't wait for any window, there's always "any" window there. I'm going to assume you meant something like:

While 1
    Sleep(10)
    Switch WinGetTitle("[active]")
        Case "Window 1"
            ;do something
            ExitLoop
        Case "Window 2"
            ;do something
            ExitLoop
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0