Jump to content
Tech63

Newbie Question - Call function after Window has been Activated

Recommended Posts

Tech63

I'm not sure which variant of the WinActivate to use.

I want to call a custom function only after a specific window appears. Perhaps an IF Then statement containing some form of WinActive?

 

Thanks!

Edited by Tech63

Share this post


Link to post
Share on other sites
l3ill
While 1

        If Not WinExists(WinGetHandle("Registry Editor")) Then

                ContinueLoop

        Else

                MsgBox(0, "", "Win now exists", 1)

        EndIf

        Sleep(50)

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.