Categories
Antiwork

Anti-Work Pro Tip: Prevent Screen Lock

Does your work computer's screen automatically lock after so many minutes of mindlessly waiting for something to happen? Simple Python script: from pyautogui import press from time import sleep while True: press('volumeup') sleep(10) press('volumedown') sleep(500) (Python commands that move your mouse don't work. This does.)


Does your work computer's screen automatically lock after so many minutes of mindlessly waiting for something to happen? Simple Python script:

from pyautogui import press
from time import sleep

while True:
    press('volumeup')
    sleep(10)
    press('volumedown')
    sleep(500)

(Python commands that move your mouse don't work. This does.)

Leave a Reply

Your email address will not be published.