Deye Posted April 12, 2019 Share Posted April 12, 2019 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 More sharing options...
Nine Posted April 12, 2019 Share Posted April 12, 2019 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 Deye 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Deye Posted April 12, 2019 Author Share Posted April 12, 2019 (edited) 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 April 12, 2019 by Deye 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