import mouse
import time
import os
import pyttsx3
while True:
before_sleep = mouse.get_position()
time.sleep(600)
after_sleep = mouse.get_position()
if before_sleep == after_sleep:
pyttsx3.speak("Going to shut down")
os.system("shutdown /s /t 1")