Skip to content

Instantly share code, notes, and snippets.

@rahul-yr
Created March 19, 2022 04:46
Show Gist options
  • Save rahul-yr/6ea45e50d777d88d6e07666508f9236b to your computer and use it in GitHub Desktop.
Save rahul-yr/6ea45e50d777d88d6e07666508f9236b to your computer and use it in GitHub Desktop.
import pyautogui
import time
while True:
try:
pyautogui.moveTo(20, 20, duration=1)
time.sleep(1)
pyautogui.moveTo(1000, 20, duration=1)
time.sleep(1)
pyautogui.moveTo(1000, 1000, duration=1)
time.sleep(1)
pyautogui.moveTo(20, 1000, duration=1)
time.sleep(20)
except Exception as e:
print("Thank you...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment