Skip to content

Instantly share code, notes, and snippets.

@anujonthemove
Created February 2, 2023 18:28
Show Gist options
  • Save anujonthemove/c077c72ade2446611cb7541b0d2cb47a to your computer and use it in GitHub Desktop.
Save anujonthemove/c077c72ade2446611cb7541b0d2cb47a to your computer and use it in GitHub Desktop.
import pyautogui
import time
#user note:
# cursor will keep moving on 2 diagonals of a 5x5 square and cilcking - better to position it inside the terminal from which this script is triggered
#pyautogui.FAILSAFE = False # uncomment this if you want to disable the pause script if cursor in corner feature
while True:
pyautogui.move(-5,5)
pyautogui.click()
time.sleep(5)
pyautogui.move(5,-5)
pyautogui.click()
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment