Jump to content

AdlibRegister Q


Deye
 Share

Recommended Posts

Hi,

when i call AdlibRegister for a short timed script
When the time parameter is set to "time" longer then the script should last, the behavior is that the adlib  starts first with the sleep ( ? ) , Where in this case  i need it to be the other way around 

Also  what can be used to determain if some Adlib Is Registered\running (in its designated function it runs with a while loop and once done its to  Deregister itself ) so i can tell the script at any point to wait for some Adlib to end before continuing ..

is there some other CallbackRegister i could use  ? maybe some kind of "CreateThread" and "WaitThreadEnd" ..

Thanks

Deye

Link to comment
Share on other sites

44 minutes ago, Deye said:

When the time parameter is set to "time" longer then the script should last, the behavior is that the adlib  starts first with the sleep ( ? ) , Where in this case  i need it to be the other way around 

Call your function directly first, then use adlib for the future...

44 minutes ago, Deye said:

Also  what can be used to determain if some Adlib Is Registered\running

AdlibUnRegister () without parameter will unregister the last adlib and will return the number of registered function still running...a simple loop without param would do the trick

 

Link to comment
Share on other sites

Nevermind 

what I did is let adlib start as normal De-registered at its beginning 
Used a globle var to indicate its done So the script in another point can wait for it to end and continue
That is how I would usually go about it anyways ..
Was just surprised that adlib starts with a sleep, Never noticed this before 

Deye

 

Edited by Deye
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...