Advertisement
AyanUpadhaya

Linux Mint Screen on script

May 13th, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #linux mint screen on script
  2. import pyautogui
  3. import time
  4. def function():
  5. while True:
  6. pyautogui.press("ctrl")
  7. print('Pressed ctrl to keep the screen alive')
  8. time.sleep(240)
  9. function()
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement