컴퓨터/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))

'컴퓨터 > Python' 카테고리의 다른 글

웹 스크래핑  (0) 2019.05.25
pyautogui 같은이미지가 나타날 때까지 sleep  (0) 2019.05.23
python pyautogui 기업농협로그인 ie webdriver  (0) 2019.05.22
python pillow 화면캡쳐  (0) 2019.05.22
git  (0) 2019.05.15