9 lines
212 B
Python
9 lines
212 B
Python
|
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)
|