Physical Posted May 19, 2008 Share Posted May 19, 2008 (edited) I am trying to use adlibenable to execute something every 10 seconds so i did AdlibEnable ("Function", 10000) and i placed this at the very top of my script. It made me think of something tho when i was deciding where to put it. If i put it inside a function that gets called frequently, for example: Func TestFunc() AdlibEnable ("Function", 10000) $X = $X + 1 EndFunc OR if i put it inside a loop that is constantly repeating: While 1 AdlibEnable ("Function", 10000) Sleep (100) WEnd Will the timer inside AdlibEnable get reset every time that it gets called again, or will it just ignore it since its already been enabled once? Thanks for any help. Edited May 19, 2008 by Physical Link to comment Share on other sites More sharing options...
Valuater Posted May 19, 2008 Share Posted May 19, 2008 no need to ask, just try your code above While 1 AdlibEnable("Function1", 10000) Sleep(100) WEnd Func Function1 () MsgBox(0x0, "Test", "Thsis is a test ", 2) EndFunc ;==>Function1 the Message box never gets called 8) Link to comment Share on other sites More sharing options...
Physical Posted May 19, 2008 Author Share Posted May 19, 2008 no need to ask, just try your code above While 1 AdlibEnable("Function1", 10000) Sleep(100) WEnd Func Function1 () MsgBox(0x0, "Test", "Thsis is a test ", 2) EndFunc ;==>Function1 the Message box never gets called 8) I didn' t even think of trying that. Thanks for the help. 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