Visitar URL original
GitHub - nil1st/NoSleep: Lightweight Windows utility to prevent screen locking · GitHub
Skip to content
nil1stPublic
forked from CHerSun/NoSleep

About

Lightweight Windows utility to prevent screen locking

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoSleep windows utility

2 October 2021

Updated Context Menu to stop timer after certain interval, made default to stop after 2 hours. Also updated to use .Net Framework 4.8

13 July 2016

NoSleep utility prevents Windows OS from automatically going into ScreenSaver / Sleep / ScreenLock modes. It's meant for those cases where user cannot change settings (due to corporate-enforced policy, for example). Inspired by Linux Caffeine.

Usage

Download NoSleep.exe from "Compiled binary" folder. Then just run and forget. You can also add shortcut to NoSleep to your StartUp items for NoSleep to start on user login. While active NoSleep will sit in Windows tray and prevent Windows from blocking.

If you wish to stop it - close the program - right-click tray icon and select "Close".

Requirements

.NET 4.0 (client profile)

How it works

NoSleep works through calling to SetThreadExecutionState resetting display/idle Windows timers every 10 seconds. Should use no CPU and around 6-7 MBs of RAM. Icons are taking up 166 KB in compiled binary, the rest is the code (~10 KB).

Icon

Icon was taken from http://www.iconarchive.com/show/food-icons-by-martin-berube/coffee-icon.html. Icon is disributed as freeware.

Artist: Martin Berube (thanks, Martin!)

License

Completely free, use as you will. No liability.

About

Lightweight Windows utility to prevent screen locking

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages