Jump to content

need help about the AdlibEnable() function !


cxcio
 Share

Recommended Posts

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