Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Screen Log

DZone's Guide to

Screen Log

·
Free Resource
save the code in .pyw file if you don't want a command-line window show when running.


from ImageGrab import grab
from time import sleep
from time import localtime,strftime

while 1:
    im=grab()
    im=im.convert('L')
    filename=strftime('%d%H%M',localtime())
    im.save(r'c:\tmp\%s.jpg'%filename,quality=15)
    sleep(300)
    i=i+1
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}