Sign in to follow this  
Followers 0
cxcio

need help about the AdlibEnable() function !

1 post in this topic

#1 ·  Posted (edited)

$vWinTitle="MyProgram"

;main
Funcmain()

Func FuncMain()
    WinActivate ($vWinTitle)
    WinWaitActive ($vWinTitle,"",30000)
    adlibenable("checkadlib")
    doloop()
Endfunc

Func Doloop()
    do
        sleep(500); here i'll add my codes ...
    until 2<1
Endfunc

Func CheckAdlib()
    If NOT WinActive($vWinTitle) Then
        AdlibDisable()
        $vConfirmExit=MsgBox ( 0, "Exiting ...", "Press OK to exit ,or it will restart at 10 seconds !", 10 )
        If $vConfirmExit<1 Then
            FuncMain()
        Else
            Exit
        Endif
    Endif
Endfunc

it sames that the adlibenable() function can't work again after the Msgbox timeout!

plz help me !!!

Edited by cxcio

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