Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 827 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 827 Bytes

WinSleepDelay

A simple tool to send your Windows computer to sleep with a delay.


To use simply run the exe and be prompted or use command-line to pass in arguments.

Arguments should be: [seconds] [flags]. For example: 30 -hfe, 1 -f -e, 60.
When using command-line you may pass in flags without a number: .\WinSleepDelay.exe -e. You will be prompted for seconds.

The core of this script is SetSuspendState. You can control the bools passed in with the following flags:

Flag Description
-h Enter hibernation instead of sleep.
-f Force suspend regardless of running applications.
-e Allow Task Scheduler events to wake the computer.