Jump to content

AdlibEnable Question

Recommended Posts

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

OR if i put it inside a loop that is constantly repeating:

While 1
     AdlibEnable ("Function", 10000)
     Sleep (100)

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 by Physical
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...