Ultimate Windows Task Scheduler?

Snowburden

Honorable
May 9, 2014
53
0
10,530
So I'm looking for a task scheduler to put my computer to sleep. With several conditions though. What I mean by that, is I've looked through dozens of software/freeware software that does task scheduling, but NOTHING that matches what I want and the conditions. So what they are is in the actual Windows Task Scheduler you can do specific times. But what I want are time windows, such as 12-3PM it will be active. And the computer would go to sleep if the computer is not active, if it's active, it'll obviously stay awake. Now Windows Task Scheduler doesn't have time windows, just time, with exceptions that if it fails, it'll start again, etc.

A lot of freeware out there have only half of what I want, they don't have the features of, if the computer is being idle or not.

The exact thing I'm looking for is this:

~0600AM-11AM, Computer wakes up (through the feature Windows Task Scheduler has "wake PC to do task"), Computer if idle, will not go to sleep.
~11AM-3PM, if computer is idle, computer will go to sleep
3PM-6PM, computer if idle, will not go to sleep.
6PM-06AM, computer will go to sleep if idle

Now. I want some software that is able to do that, where you give it time windows. Not just a specific time, and that's it. Like almost all these Task Scheduler software has, including the Windows one.

Is there such a software out there that does this?
 
Solution
Try this, use a task to wake up the PC and run [Don't Sleep]. Don't Sleep has a "timer" which will allow you to set it to not sleep for X minutes/hours then the program exits.

Don't Sleep supports command line parameters: https://www.softwareok.com/?seite=faq-DontSleep&faq=6
So run it and use command line parameters to have it not allow your PC to sleep for X hours. After that, your normal PC settings will kick in that tell your PC to sleep when idle after X minutes.

Example:
6:00am Scheduled Task
Run Don't Sleep with parameters something like this:
DontSleep.exe -bg enable=1 use_timer=1 set_timer=300

The -bg will set the program to run in the tray, minimized
enable=1 means the program is enabled (actually...
Try this, use a task to wake up the PC and run [Don't Sleep]. Don't Sleep has a "timer" which will allow you to set it to not sleep for X minutes/hours then the program exits.

Don't Sleep supports command line parameters: https://www.softwareok.com/?seite=faq-DontSleep&faq=6
So run it and use command line parameters to have it not allow your PC to sleep for X hours. After that, your normal PC settings will kick in that tell your PC to sleep when idle after X minutes.

Example:
6:00am Scheduled Task
Run Don't Sleep with parameters something like this:
DontSleep.exe -bg enable=1 use_timer=1 set_timer=300

The -bg will set the program to run in the tray, minimized
enable=1 means the program is enabled (actually blocking shutdown)
use_timer=1 tells the program to use a timer
set_timer=300 tells the program to set the timer for 300 minutes (or 5 hours), it will then close out at 11am

That will wake the PC at 6:00am and prevent sleep until 11am. Then you can run it again at 3pm with another task and set the timer for 180 minutes (or 3 hours).

Other info which may help:

How to Make Your PC Shut Down at Night (But Only When You're Not Using It): https://www.howtogeek.com/howto/30758/make-your-pc-shut-down-at-night-but-only-when-youre-not-using-it/

5 Tools to Automatically Wake Up Windows From Standby and Hibernation: https://www.raymond.cc/blog/automatically-wake-up-from-windows-stand-by-and-hibernation/
 
Solution
Hi, it's in the above message: https://www.softwareok.com/?seite=faq-DontSleep&faq=6
The ones in yellow are the parameters. Usually a 0 means No and a 1 means Yes.

So block_shutdown=0 means the program will not block shut down and block_shutdown=1 means the program will block shut down.

Also in the program, click on the menu and choose "Start Parameter" and it lists the parameters out for you.

Start_parameter_in_DontSleep_e.g._for_a_batch_file_2014-11-01-12-03-29.png