Skip to content

Instantly share code, notes, and snippets.

@layoaster
Last active August 2, 2023 11:58
Show Gist options
  • Save layoaster/856c2178a4ce889f7a8cc43cae4fc703 to your computer and use it in GitHub Desktop.
Save layoaster/856c2178a4ce889f7a8cc43cae4fc703 to your computer and use it in GitHub Desktop.
Cursor randomizer
from random import randint
from time import sleep
import pyautogui
screen_resolution = pyautogui.size()
while True:
x = randint(0, screen_resolution[0] - 1)
y = randint(0, screen_resolution[1] -1 )
pyautogui.moveTo(x, y, duration=1)
sleep(randint(1, 60))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment