Skip to content

Instantly share code, notes, and snippets.

@kingjr
Created March 31, 2022 16:19
Show Gist options
  • Save kingjr/18725e3ac0a178f4b7bf9f41f7933f28 to your computer and use it in GitHub Desktop.
Save kingjr/18725e3ac0a178f4b7bf9f41f7933f28 to your computer and use it in GitHub Desktop.
move_cursor.py
from pynput.mouse import Controller
import time
mouse = Controller()
for i in range(10_000_000):
mouse.move((i % 2)*2-1, 0)
time.sleep(60.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment