일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- array
- c#
- GIT
- math
- gas
- Google Excel
- Github
- django
- Google Spreadsheet
- Kotlin
- string
- Java
- numpy
- Excel
- Tkinter
- Redshift
- 파이썬
- Apache
- SQL
- PostgreSQL
- Python
- Mac
- hive
- dataframe
- PySpark
- PANDAS
- list
- google apps script
- matplotlib
- Today
- Total
목록control (2)
달나라 노트
pynput library로 keyboard를 컨트롤 하는 방법을 알아봅시다.(mac환경에서 진행됩니다.) from pynput.keyboard import Key, Controllerkeyboard = Controller()# press and release spacekeyboard.press(Key.space) # press spacekeyboard.release(Key.space) # release space press, release method를 이용해 keyboard의 key를 눌렀다 뗐다를 할 수 있습니다.press는 어떠한 key를 누르라는 의미이며release는 어떠한 key를 누른 상태에서 떼라는 의미입니다. Key를 for loop를 이용해 출력해보면 어떠한 key들이 Ke..
pynput library로 mouse를 컨트롤 하는 방법을 알아봅시다.(mac환경에서 진행됩니다.) from pynput.mouse import Button, Controllermouse = Controller()print('The current pointer position is {0}'.format(mouse.position)) 위처럼 mouse 객체를 만들면 position attribute는 마우스의 위치를 담고 있습니다. 화면의 왼쪽 가장 위가 (0, 0)이며오른쪽으로 갈수록 x좌표가 양수로 증가하고아래쪽으로 갈수록 y좌표가 양수로 증가합니다. from pynput.mouse import Button, Controllermouse = Controller()# move pointer to ..