mikehunt114 Posted November 25, 2006 Share Posted November 25, 2006 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] Link to comment Share on other sites More sharing options...
GEOSoft Posted November 25, 2006 Share Posted November 25, 2006 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 thatAdLibEnable(Func1)Func 1()If XYZ then Func 2()EndFuncFunc 2()Do whateverEndFunc 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!" Link to comment Share on other sites More sharing options...
NELyon Posted November 26, 2006 Share Posted November 26, 2006 It isn't possible to have more than one AdLibEnable except after AdLibDisabling it first Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 26, 2006 Moderators Share Posted November 26, 2006 http://www.autoitscript.com/forum/index.ph...st&p=218887 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
mikehunt114 Posted November 26, 2006 Author Share Posted November 26, 2006 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] 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