Is there a one button way to save a screenshot directly to a file in Windows?
TheSoftwareJedi accurately answered above question for Windows 8 and 10. Below original extra material remains for posterity.
This is a very important question as the 316K views shows as of 2021. Asked in 2008, SO closed this question around 2015 as being off-topic, probably because of the last question below.
In Windows XP, one can press Alt-PrintScreen to copy an image of the active window, or Ctrl-PrintScreen to copy an image of the full desktop.
This can then be pasted into applications that accept images: Photoshop, Microsoft Word, etc.
I’m wondering: Is there a way to save the screenshot directly to a file? Do I really have to open an image program, like Paint.net or Photoshop, simply to paste an image, then save it?
You can code something pretty simple that will hook the PrintScreen and save the capture in a file.
Here is something to start to capture and save to a file. You will just need to hook the key ‘Print screen’.
Update Here is the code to hook the PrintScreen (and other key) from C#:
Hook code