From 2920892ddf389165fd22bb9cbaf8f5d6d32d7a41 Mon Sep 17 00:00:00 2001 From: taimoorulhaq353 Date: Thu, 30 Oct 2025 21:35:16 +0500 Subject: [PATCH] Create Circular-movement-mouse.py --- Circular-movement-mouse.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Circular-movement-mouse.py diff --git a/Circular-movement-mouse.py b/Circular-movement-mouse.py new file mode 100644 index 000000000..3499382d0 --- /dev/null +++ b/Circular-movement-mouse.py @@ -0,0 +1,15 @@ +import pyautogui +import time + +# Move mouse smoothly to (x=500, y=300) over 2 seconds +pyautogui.moveTo(500, 300, duration=2) + +# Move the mouse relative to its current position +pyautogui.move(100, 0, duration=1) + +# Example: small circular movement +for i in range(10): + pyautogui.move(10, 10, duration=0.1) + pyautogui.move(-10, 10, duration=0.1) + pyautogui.move(-10, -10, duration=0.1) + pyautogui.move(10, -10, duration=0.1)