TheJoeFin / Caffeinated

☕️ Prevent your Windows PC from sleeping. Port of Caffeine for OS X. Upgraded with modern Windows 10 APIs.
MIT License
35 stars 4 forks source link

Automatic mode to prevent sleep as long as a process with a given name is running. #5

Open TheJoeFin opened 4 years ago

TheJoeFin commented 4 years ago

"Add an automatic mode, that prevents sleep as long as a process with a given name is running. The names can be configured, one line per process, named as in the task manager (case sensitive)." from @easimon fork

TheJoeFin commented 4 years ago

Code demonstrated here:

https://github.com/easimon/Caffeinated/commit/2ec7654e9c065ea3ffff11005ba4982072001fcd https://github.com/easimon/Caffeinated/commit/6a3f786ce8b4fce4fee209567c43b077a31b8b60 https://github.com/easimon/Caffeinated/commit/85a57f34240406ddcdd78a14e6359484e3309118