13 12 2005
Disable mandatory screen saver
So you’re trying to watch a movie on your shiny new corporate laptop. Ten minutes into the film, the automatic screen saver kicks in, locks the machine and forces you to re-login. The little weasels at IT have even disabled the screen saver properties, so you can’t even turn it off.
Here’s a tiny python script that will fake keyboard activity every five minutes in order to prevent a screen saver from activating.
"""Fake keyboard activity to prevent screen
saver from activating."""
import win32api
import win32con
import time
while True:
print "Faking keyboard activity at", time.asctime()
win32api.keybd_event(win32con.VK_SHIFT, 0, 0, 0)
win32api.keybd_event(win32con.VK_SHIFT, 0, \\
win32con.KEYEVENTF_KEYUP, 0)
time.sleep(60 * 5)
Download:
2 comments2 Comments so far
Leave a comment
ave to say that this tool is excellent.
Currently easily disabling the mandatory screen saver for more than 2 years.
I also have this page bookmarked in my goggle bookmarks so whenever I need it I just pop in here.
damn this tool is good. thanks!