Skip to content

Instantly share code, notes, and snippets.

@barretts
Created July 28, 2025 15:48
Show Gist options
  • Save barretts/24f47cff41334d50e30b8383679c1ba4 to your computer and use it in GitHub Desktop.
Save barretts/24f47cff41334d50e30b8383679c1ba4 to your computer and use it in GitHub Desktop.
import pyautogui
import time
import random
while True:
x = random.randint(0,1000)
y = random.randint(0,1000)
pyautogui.moveTo(x,y)
localtime = time.localtime()
result = time.strftime("%I:&M:%S %p", localtime)
print('Moved at ' + str(result) + ' (' + str(x) + ', ' + str(y) + ')')
time.sleep(60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment