Jump to content

Newbie Question - Call function after Window has been Activated


Recommended Posts

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
Link to comment
Share on other sites

While 1

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

                ContinueLoop

        Else

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

        EndIf

        Sleep(50)

WEnd

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...