728x90
from pynput import mouse
def on_click(x, y, button, pressed):
print('Button: %s, Position: (%s, %s), Pressed: %s ' %(button, x, y, pressed))
with mouse.Listener(
on_click=on_click) as listener:
listener.join()
인터넷에서 퍼온 소스코드임
자동화 프로그램 활용시에 사용많이함 !!!
728x90
'개발자 모드 > 파이썬(python)' 카테고리의 다른 글
파이썬 마우스 좌표 보는 프로그램 (0) | 2022.05.15 |
---|---|
파이썬 스레드 최고의 예제 (0) | 2022.02.02 |
파이썬 색상 선택기 askcolor (0) | 2021.09.19 |
파이썬 open cv 기초 소스 (캠으로 저장하기) (0) | 2021.09.19 |
파이썬 python tkinter 윈도우창 접기 버튼 없애기 (0) | 2021.09.02 |