test1
This commit is contained in:
11
coordnate.py
Normal file
11
coordnate.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import pyautogui
|
||||
import time
|
||||
|
||||
print("Наведите курсор и нажмите Ctrl+C")
|
||||
try:
|
||||
while True:
|
||||
x, y = pyautogui.position()
|
||||
print(f"X: {x}, Y: {y}", end="\r")
|
||||
time.sleep(0.1)
|
||||
except KeyboardInterrupt:
|
||||
print("\nГотово!")
|
||||
Reference in New Issue
Block a user