how to make computer go in sleep mode using pythn
import time
print("This is how to pause a program")
time.sleep(5)
print("Did you saw that i slept for 5 seconds")
how to make computer go in sleep mode using pythn
import time
print("This is how to pause a program")
time.sleep(5)
print("Did you saw that i slept for 5 seconds")
how to make computer go in sleep mode using pythn
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")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us