forger Posted April 6, 2006 Share Posted April 6, 2006 Just out of curiosity, why is the Sleep function working for 2147483647 milliseconds max? Anything stops it? Link to comment Share on other sites More sharing options...
SpookMeister Posted April 6, 2006 Share Posted April 6, 2006 A better question might be why someone would want to use a sleep for anywhere near that long. (Obviously I don't have a real answer to your question) [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
forger Posted April 6, 2006 Author Share Posted April 6, 2006 Well dunno, maybe someone wants to make a scheduler Link to comment Share on other sites More sharing options...
SpookMeister Posted April 6, 2006 Share Posted April 6, 2006 (edited) I'd have it check the time/date at a reasonable interval. That way you would have the option to kick a job off even if the system was off when it should have fired. Also the app will not be frozen until the job fires. Edited April 6, 2006 by SpookMeister [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 6, 2006 Moderators Share Posted April 6, 2006 I agree, I'd do the date and time... but just for the sake of arguement.. how long would this sleep? Sleep(2147483647) Sleep(2147483647)... If you needed to go that route for whatever reason lol... 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...
forger Posted April 6, 2006 Author Share Posted April 6, 2006 (edited) I was speculating heh. Hmmm, I suppose they could use the task scheduler for that. Hm, that brings up another question: Is it possible to schedule tasks silently with command line? If so, how? Edit: A very nice solution by SmOke_N, as usual Edited April 6, 2006 by forger Link to comment Share on other sites More sharing options...
MrSpacely Posted April 6, 2006 Share Posted April 6, 2006 (edited) I was speculating heh. Hmmm, I suppose they could use the task scheduler for that. Hm, that brings up another question: Is it possible to schedule tasks silently with command line? If so, how? Edit: A very nice solution by SmOke_N, as usual Unplug the pc speaker and its silent. But scheduling things is easy in autoit $sched1 = 0 while 1 if (@hour == 12 AND @min == 50) AND $sched1 == 0 then run("notepad.exe") $sched1 = 1 endif sleep(15000) wend This would start notepad every day at 12:50 wich is checked every 15 seconds you could add invinite schedules in the loop. Ofcourse you could make it so it reads a ini file wich contains all schedules and tasks wich should be done (and ofcourse you can add year and date checks) Edited April 6, 2006 by MrSpacely Link to comment Share on other sites More sharing options...
forger Posted April 6, 2006 Author Share Posted April 6, 2006 Ok silent = unattended Thank you all for your suggestions, you never know when I might need it heh. Link to comment Share on other sites More sharing options...
herewasplato Posted April 6, 2006 Share Posted April 6, 2006 ...Is it possible to schedule tasks silently with command line? If so, how?...http://www.autoitscript.com/forum/index.ph...ndpost&p=116238 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
blindwig Posted April 6, 2006 Share Posted April 6, 2006 I was speculating heh. Hmmm, I suppose they could use the task scheduler for that. Hm, that brings up another question: Is it possible to schedule tasks silently with command line? If so, how?Edit: A very nice solution by SmOke_N, as usual On Windows XP you can use SCHTASKSOn Windows NT you can use ATOn Windows 9x I'm pretty sure you have to use a 3rd party utility or library. My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions 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