I am looking for a open source of free tool that I could execute from the command line. It should take a screen shot of the screen and save it to a file. Operating system is Windows. Something like this:
C:\>screenshot.exe screen1.png
|
I am looking for a open source of free tool that I could execute from the command line. It should take a screen shot of the screen and save it to a file. Operating system is Windows. Something like this:
|
|||||||||||||
|
|
Download imagemagick. Many command line image manipulation tools are included. import allows you to capture some or all of a screen and save the image to a file. For example, to save the entire screen as a jpeg:
If you want to use the mouse to click inside a window or select a screen region & save a a png, just use:
|
|||||
|
|
This question's already been answered, but I thought I'd throw this in as well. NirCmd (freeware, sadly, not open source) can take screenshots from the command line, in conjunction with the numerous other functions it can do. Running this from the command line either in nircmd.exe's directory or if you copied it to your system32 folder:
does what you want. You can also delay it like this:
That will wait 2000 milliseconds (2 seconds), and then capture and save the screenshot. |
|||||||
|
|
Other suggestions are fine -- you could also try MiniCap, which is free and has some other features like flexible file naming and some different capture modes: http://www.donationcoder.com/Software/Mouser/MiniCap/index.html (disclaimer: I'm the author of MiniCap). |
|||
|
OPTIONS:
-wt WINDOW_TITLE
Select window with this title.
Title must not contain space (" ").
-wh WINDOW_HANDLE
Select window by it's handle
(representad as hex string - f.e. "0012079E")
-rc LEFT TOP RIGHT BOTTOM
Crop source. If no WINDOW_TITLE is provided
(0,0) is left top corner of desktop,
else if WINDOW_TITLE maches a desktop window
(0,0) is it's top left corner.
-o FILENAME
Output file name, if none, the image will be saved
as "screenshot.png" in the current working directory.
-h
Shows this help info.
|
|||
|
|
|
You can try the boxcutter tool:
|
||||
|
|
|
Try IrfanView. You can run it via command-line. You can specify which window to capture – such as whole window or just the current/active window – and you can also do some basic editing such as sharpening, cropping or resizing the images. Here are the command line options. |
||||
|
|
|
You can use snapit to take awesome screenshots from the command line. |
||||
|