Skip to content

Instantly share code, notes, and snippets.

View M0Rph3U56031769's full-sized avatar
🏠
Working from home

Daniel Nagy M0Rph3U56031769

🏠
Working from home
View GitHub Profile
@M0Rph3U56031769
M0Rph3U56031769 / disable_lockscreen.py
Created December 22, 2020 07:57
prevent screensaver/lock screen
from ctypes import windll
# prevent screensaver/lock screen
windll.kernel32.SetThreadExecutionState(0x80000002)
# restore state
windll.kernel32.SetThreadExecutionState(0x80000000)