79647911

Date: 2025-06-01 20:39:03
Score: 1.5
Natty:
Report link

The following code worked just fine on Kali Linux for the purpose of preventing sleep. The above answer that involved setting the volume up and down did not work on Kali. I do not know about Windows or MacOS.

import pyautogui, time

while True:
    pyautogui.moveTo(100, 100)
    pyautogui.moveTo(500, 500)
    time.sleep(5)
Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Matthew Bendyna