How can I automatically save screen shots by the press on the Prt Scr button?

Solution 1:

Greenshot is a great program!

For the output filename pattern, if you use a pattern of ${YYYY}-${MM}-${DD} ${hh}-${mm}-${ss} then you'll get files with names such as 2013-01-26 10-34-49.png.

I couldn't find any documentation on the capturetime keyword, but it is an advanced function. A pattern of ${capturetime:d"yyyy-MM-dd HH-mm-ss"} produces the same output as above. For the technically inclined, when I look at the source code, this is what I've determined:

  • The letter after the colon needs to be a d which indicates date/time format.
  • After the d, the quoted text is a format string passed into C#'s DateTime.ToString() method. You can find quite a few examples here.

If you need more advanced date formatting such as written out month names, timezones, etc., then you might find benefit of using the above capturetime pattern.

P.S. some older versions of Greenshot used patterns such as %YYYY% instead of ${YYYY}. Be sure to check the file pattern help window so you use the correct format.

Solution 2:

I use a program named FastStone Capture, and although it is now shareware, you can still find the last freeware version around (google it).

What i like about it is that it has several capturing options, windows, active window, square and freehand regions, etc. And it also gives you options on how save the images, for example, open directly in a builtin editor (where you can obviously edit it, or not, before saving it wherever you want), directly copy to clipboard, to a file, asking for the name, to a file with renaming options (what you want), and even to email and printer (i haven't used those).

For the renaming options, it also gives you wildcarts, the one I use is:

$Y-$M-$D_$H$N$S

which gives names such as 2012-11-23_163428 which is exactly what you need.

And even if you take several screenshots within a second, you could ad another # wildcard, to add consecutive numbers for otherwise files with the same name.

Also the file type is set on another preference, you can choose jpg, png, bmp...

Give it a try!