Skip to content

Commit ba7a13d

Browse files
feat: 🗺️ added a coordinates finder script.
1 parent c913b8a commit ba7a13d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Coordinates_finder_helper.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Helper script to get mouse coordinates
2+
import pyautogui
3+
import time
4+
5+
print("Move your mouse to the top-left corner of the region and press Ctrl+C.")
6+
try:
7+
while True:
8+
x, y = pyautogui.position()
9+
position_str = f"X: {str(x).rjust(4)} Y: {str(y).rjust(4)}"
10+
print(position_str, end='')
11+
print('\b' * len(position_str), end='', flush=True)
12+
time.sleep(0.1)
13+
except KeyboardInterrupt:
14+
print("\nCoordinates captured.")
15+
16+
# Now you have the top-left (x, y). You'll need to estimate/measure the width and height.
17+
# Repeat for each required region (question + 4 answers).

0 commit comments

Comments
 (0)