Created
December 27, 2022 15:42
-
-
Save tripolskypetr/bb62ca38d77edb3295e4f110db7f44e1 to your computer and use it in GitHub Desktop.
Mouse Jiggler compatible with OSX 10.14
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
from pynput.mouse import Controller | |
from datetime import datetime | |
import time | |
import random | |
mouse = Controller() | |
TOTAL_MOVES = 100 | |
while True: | |
print(datetime.now().strftime("%H:%M:%S")) | |
for _ in range(TOTAL_MOVES): | |
mouse.move( | |
random.randrange(-50, 50), | |
random.randrange(-50, 50) | |
) | |
time.sleep(0.1) | |
time.sleep(20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment