Jump to content

Can't detect pop-up window


Recommended Posts

If you just want to know if it exists, I guess you could use this:

AdlibEnable("checkPopUp",250)
Func checkPopUp()
    if WinExists("Conflicting Settings") Then
        MsgBox(0,"","Found")
    EndIf
EndFunc 
While 1
    Sleep(25)
WEnd

Now if all you have in your code is that function + AdlibEnable then it won't work. Try this:

AdlibEnable("checkPopUp",250)
Func checkPopUp()
    if WinGetTitle("")="Conflicting Settings" Then
        MsgBox(0,"","Found")
    EndIf
EndFunc 
While 1
    Sleep(25)
WEnd

I don't see any reasong why that shouldn't work. It does here...

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...