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?
Try this: http://www.screenshot-utility.com/
From their homepage:
When you press a hotkey, it captures and saves a snapshot of your screen to a JPG, GIF or BMP file.
Keep Picasa running in the background, and simply click "Print Screen" key
Source
Dropbox now provides the hook to do this automagically. If you get a free dropbox account and install the laptop app, when you press PrtScr Dropbox will give you the option of automatically storing all screenshots to your dropbox folder.
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
Thanks for all the source code and comments - thanks to that, I finally have an app that I wanted :)
I have compiled some of the examples, and both sources and executables can be found here:
http://sdaaubckp.svn.sourceforge.net/viewvc/sdaaubckp/xp-take-screenshot/
I use InterceptCaptureScreen.exe - simply run it in a command prompt terminal, and then press Insert when you want to capture a screenshot (timestamped filenames, png, in the same directory where the executable is); keys will be captured even if the terminal is not in focus.
(I use Insert key, since it should have an easier time propagating through, say, VNC than PrintScreen - which on my laptop requires that also Fn key is pressed, and that does not propagate through VNC. Of course, its easy to change what is the actual key used in the source code).
Hope this helps, Cheers!
As far as I know in XP, yes you must use some other app to actually save it.
Vista comes with the Snipping tool, that simplifies the process a bit!