StiKemUp Posted July 5, 2007 Share Posted July 5, 2007 Is it possible to 'wait' for a period of time without actually pausing the script with Sleep() ? Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 5, 2007 Share Posted July 5, 2007 Hi, yes. But what else should your script do when it "waits" ? Sleep? Check for a file? ... So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
StiKemUp Posted July 5, 2007 Author Share Posted July 5, 2007 Hi,yes. But what else should your script do when it "waits" ? Sleep?Check for a file?...So long,MegaWell it's calling from WMI and checking LoadPercentages on the CPU, RAM, and HD. When it gets over a certain percentage, I have it send out an email. Everything is working great, but I need it to wait so long before it resets a variable without pausing the entire checking process. Link to comment Share on other sites More sharing options...
Achilles Posted July 5, 2007 Share Posted July 5, 2007 Well it's calling from WMI and checking LoadPercentages on the CPU, RAM, and HD. When it gets over a certain percentage, I have it send out an email. Everything is working great, but I need it to wait so long before it resets a variable without pausing the entire checking process.You might use a Timer: search helpfile for TimerInit... not sure if that's what you're looking for. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
StiKemUp Posted July 5, 2007 Author Share Posted July 5, 2007 You might use a Timer: search helpfile for TimerInit... not sure if that's what you're looking for.Looks like that gives you the difference in times, I just need something to wait for so long before reseting a variable without pausing the entire script. Thank you for the reply though Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 5, 2007 Share Posted July 5, 2007 Looks like that gives you the difference in times, I just need something to wait for so long before reseting a variable without pausing the entire script. Thank you for the reply though Use AdLibEnable() to kick a function that does what you want. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
StiKemUp Posted July 5, 2007 Author Share Posted July 5, 2007 Use AdLibEnable() to kick a function that does what you want. I think I can work with this.. Thanks PsaltyDS 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