Sign in to follow this  
Followers 0
jruelan

Can't detect pop-up window

5 posts in this topic

Help please, i used AdlibEnable("checkPopUp",250)

Share this post


Link to post
Share on other sites



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

tnx, it's such a great help....

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