Simple screenshot file

If you have a question or need help, this is the place to be.
Post Reply
The3rdIcon
Posts: 4
Joined: Thu Apr 24, 2014 4:10 pm

Simple screenshot file

Post by The3rdIcon » Thu Apr 24, 2014 5:57 pm

I had tried to search around but screenshot is a common keyword.

Is there a simple of of saving a screen shot or do I have to use keyboard and mouse emulation to take it and save it in paint?

piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Simple screenshot file

Post by piert » Thu Apr 24, 2014 9:21 pm

python script:

import ImageGrab, datetime
im = ImageGrab.grab()
date = datetime.datetime.now()
str = date.strftime("%Y%m%d%H%M%S")
im.save(r'D:\temp\DELETE NOW\screenshot%s.png' % str)

Speshal
Posts: 9
Joined: Wed May 28, 2014 2:38 pm

Re: Simple screenshot file

Post by Speshal » Fri Jan 17, 2020 5:44 pm

Perfect - Thanks!

Post Reply