Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- SQL
- Git
- AWS
- codeigniter4
- php
- javascript
- linux
- staging area
- ec2
- working directory
- Ruby On Rails
- dockerfile
- controller
- ubuntu
- cron
- vue
- ruby
- react
- props
- centOS7
- Python
- docker-compose
- imagemagick
- docker
- pagination
- laravel
- Selenium
- MySQL
- NGINX
- Wordpress
Archives
- Today
- Total
목록스크린샷 (1)
내가 한 노력들
[ python ] 화면 스크린샷
# 사용자가 입력한 keyboard값을 받아서 처리할 수 있는 것(후킹) # 그러기 위해서 필요한 keyboard모듈 import keyboard import time from PIL import ImageGrab def screenshot(): # 2020년 6월 1일 10시 20분 30초 -> _20200601_102030 curr_time = time.strftime("_%Y%m%d_%H%M%S") img = ImageGrab.grab() img.save("image{}.png".format(curr_time)) # image_20200601_102030 .png keyboard.add_hotkey("F9", screenshot) # 사용자가 F9번을 입력했을 때 screenshot 함수를 동작 #..
IT 공부/python
2020. 12. 13. 13:16