Skip to content

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

License

Notifications You must be signed in to change notification settings

LagunaRyan/WinSleepDelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages