Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui
- import time
- while True:
- # Get the current mouse coordinates
- x, y = pyautogui.position()
- # Print the coordinates
- print(f"Mouse coordinates: x = {x}, y = {y}")
- time.sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement