cxcio Posted December 20, 2003 Share Posted December 20, 2003 (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 Endfuncit sames that the adlibenable() function can't work again after the Msgbox timeout!plz help me !!! Edited December 20, 2003 by cxcio Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now