Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Capture your screen shorts with python
SUBMITTED BY:
Charity
DATE:
May 11, 2020, 10:17 p.m.
FORMAT:
Text only
SIZE:
264 Bytes
Raw
Download
Tweet
HITS:
489
Go to comments
Report
# visit pyGuru on YouTube
# pip install pillow
# pip install keyboard
from PIL import ImageGrab
import keyboard
def screenShot():
sc = ImageGrab.grab()
sc.save('screenshot.png')
while True:
if keyboard.is_pressed('p'):
screenShot()
break
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus