remote_control_python_script/Server/Mouse.py

9 lines
212 B
Python
Raw Normal View History

2020-12-09 12:00:12 +00:00
from pynput.mouse import Button, Controller
import time
mouse = Controller()
# Read pointer position
while True:
print('The current pointer position is {0}'.format(mouse.position))
time.sleep(1)