Sign in to follow this  
Followers 0
mikehunt114

Quick Question

5 posts in this topic

Can you have one function pausing the script and checking something every X ms, and have another completely different function pausing the same script and checking something else every Y ms?


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites



Can you have one function pausing the script and checking something every X ms, and have another completely different function pausing the same script and checking something else every Y ms?

I think so but I'm not sure you would want to Mike. Remember that your script will pause every 250ms (Approx) to run the check the add lib The more pauses then the slower the scrip. Why not just AdLib enable one function and then call the otherone from inside of that

AdLibEnable(Func1)

Func 1()

If XYZ then Func 2()

EndFunc

Func 2()

Do whatever

EndFunc


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

It isn't possible to have more than one AdLibEnable except after AdLibDisabling it first

Share this post


Link to post
Share on other sites

Thanks Geo and Smoke. I thought of putting them both into an AdlibHandler() function last night, and it worked like a charm.


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

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