Skip to content

Instantly share code, notes, and snippets.

@bymustfa
Created April 21, 2023 13:39
Show Gist options
  • Save bymustfa/0caa8844638c6d593983d64eb25013bc to your computer and use it in GitHub Desktop.
Save bymustfa/0caa8844638c6d593983d64eb25013bc to your computer and use it in GitHub Desktop.
Mouse 5 saniyede 1 rasgele hareket ettiren python kodu.
import random
import time
import pyautogui
screenWidth, screenHeight = pyautogui.size()
while True:
time.sleep(5)
x = random.randint(0, screenWidth)
y = random.randint(0 , screenHeight)
print("X: ", x, "Y: ", y)
pyautogui.moveTo(x,y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment