Prevents the computer from going to sleep. The app was developed with WPF and WinForms in the MVVM pattern, and it uses IoC container.
Three selectable modes are available:
- Prevent Screensaver and Sleep
- Prevent Sleep (which keeps the computer awake but the screensaver will be on)
- Normal mode (the computer state before you opened the app)
- The minimize button puts the app in the system tray instead of the normal tray, so it won't bother anyone. A simple click on the tray icon will restore the window.
- Clicking the close button will first safely revert the app back to normal mode then closes the window.
It calls a WinAPI function that sets the appropriate flags which prevents the computer from sleeping or turning off the screen.