Jump to content
Sign in to follow this  
jruelan

Can't detect pop-up window

Recommended Posts

i used AdlibEnable("checkPopUp",250)

And it didn't work!? :)

Sorry, lame joke. Please post some code and all the necessary stuff so we can help ;)

Share this post


Link to post
Share on other sites

heres the code, sorry i forgot

Func checkPopUp()

if WinGetTitle("")=="Conflicting Settings" Then

MsgBox(0,"","Found");

EndIf

EndFunc

Share this post


Link to post
Share on other sites

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

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  

×
×
  • Create New...