Sign in to follow this  
Followers 0
BlueScreen

Adlib

8 posts in this topic

Can 2 Adlib functions run together?

If so, can I disable a selected Adlib by using AdlibDisable?

10x

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Can 2 Adlib functions run together?

If so, can I disable a selected Adlib by using AdlibDisable?

10x

<{POST_SNAPBACK}>

Nope ...one adlib at a time.... Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

OK.

Share this post


Link to post
Share on other sites

AdlibEnable("MainAdlib")
...
...
Func MainAdlib()
    Adlib1()
    Adlib2()
    Adlib3()
EndFunc

Func Adlib1()
   ; Do something
EndFunc

Func Adlib2()
   ; Do something
EndFunc

Func Adlib3()
   ; Do something
EndFunc

Share this post


Link to post
Share on other sites

10x, Jon.

Share this post


Link to post
Share on other sites

Is there a way to know if an adlib function is running/enabled? :ph34r:

Share this post


Link to post
Share on other sites

Is there a way to know if an adlib function is running/enabled?  :ph34r:

<{POST_SNAPBACK}>

That's sort of a compile time thing you should really know... at compile time, meaning you shouldn't need to query for it at run-time.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

I see, but, I wanted it in order to overcome this issue:

While 1
AdlibEnable ("Func1", 30000)
Sleep (10000)
Func2()
WEnd

Func 2 ()
Msgbox (0,"","Hello")
EndFunc

In this case, Func1 will never execute, since the Adlib timer is being "Recharge".

I can overcome this by adding some code, though...

Edited by BlueScreen

Share this post


Link to post
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
Sign in to follow this  
Followers 0