views:

41

answers:

1

Hello, I'm learning Python now and I want to develop a screen capture tool in Python.How I can do this work?

+3  A: 

If you're on windows, use ImageGrab module along with Imaging library.
Something like:

from PIL import ImageGrab
ImageGrab.grab().save("screenshot.jpg", "JPEG")
Zaki