Skip to content

Instantly share code, notes, and snippets.

@wise-bit
Last active April 25, 2022 06:50
Show Gist options
  • Save wise-bit/66de1a186fb2b199bff1780344b830e9 to your computer and use it in GitHub Desktop.
Save wise-bit/66de1a186fb2b199bff1780344b830e9 to your computer and use it in GitHub Desktop.
Mouse wiggler
import pyautogui
# Wiggles starting from the location of mouse when executing
click = True
while True:
pyautogui.moveRel(0, 50, duration=1)
if click:
pyautogui.click()
pyautogui.moveRel(0, -50, duration=1)
if click:
pyautogui.click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment