https://github.com/winand/screen_on
Keep screen on (Windows)
https://github.com/winand/screen_on
power python screen taskbar tkinter winapi windows
Last synced: 4 months ago
JSON representation
Keep screen on (Windows)
- Host: GitHub
- URL: https://github.com/winand/screen_on
- Owner: Winand
- License: mit
- Created: 2021-03-22T19:16:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T07:36:20.000Z (almost 2 years ago)
- Last Synced: 2025-04-07T06:11:11.210Z (10 months ago)
- Topics: power, python, screen, taskbar, tkinter, winapi, windows
- Language: Python
- Homepage:
- Size: 219 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Screen On
Screen On keeps your screen on while running. [SetThreadExecutionState](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate) system call is used to achieve that.


Active state is indicated by yellow icon in Windows taskbar. The program turns off when it gets focus e. g. the icon is clicked. A shortcut is supposed to be pinned to taskbar so Screen On can be easily activated.
See also:
* [PowerToys Awake](https://docs.microsoft.com/en-us/windows/powertoys/awake)