$ pip install PyAutoGUI==0.9.52
Created
March 12, 2021 11:45
-
-
Save ryu22e/99236d66a66953d3f16b2a7acee74e08 to your computer and use it in GitHub Desktop.
automove_mousecursor.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import random | |
import pyautogui | |
if __name__ == "__main__": | |
while True: | |
x = random.randint(0, 2000) | |
y = random.randint(0, 2000) | |
duration = random.randint(1, 5) | |
pyautogui.moveTo(x, y, duration) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment