컴퓨터/Python
Pynput 마우스 위치 찾기, 키보드
풍경소리^^
2019. 5. 23. 09:30
https://nitratine.net/blog/post/simulate-mouse-events-in-python/
Simulate Mouse Events In Python
This demonstrates how to control the mouse with Python. Using pynput we are able to simulate mouse events into any window. This will show you how to press buttons, scroll and move the mouse.
nitratine.net
import pynput
from pynput.mouse import Button, Controller
mouse = Controller()
print("Current position: " + str(mouse.position))