What's new
What's new

New messages New topics Systems Serverfiles 3D Models Web Scripting

Metin2Resources

👋 Welcome to Metin2 Resources — your hub for professional Metin2 server development.

Create a free account to access advanced systems, serverfiles, tutorials and connect with other developers.

🚀 Join today and start building better.

Coordinates

africanu

Member
📜 Messages 30
👍 Reactions 6
🏆 Points 0
import pyautogui
import time

print("Move the cursor where you want and press CTRL + C to stop.\n")
time.sleep(2)

try:
while True:
x, y = pyautogui.position()
position_str = f"X: {x} | Y: {y}"
print(position_str, end='\r') # overwrite on the same line
time.sleep(0.1)
except KeyboardInterrupt:
print("\nThe final coordinates have been copied.")
 
Last edited:
Back
Top Bottom