How to make a screen capture through a command line?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
GianT
Earned some good credits
Earned some good credits
Posts: 124
Joined: Wed Mar 16, 2005 5:44 pm
Location: Guadeloupe, French West Indies
Contact:

How to make a screen capture through a command line?

Post by GianT » Tue Jun 21, 2005 3:44 pm

All is said in the title, I've spent hours searching for even a soft which can be run in the background (I don't want to see it taking the capture) and putting the screen capture in a file, but there is none...or the download doesn't work, or the soft just takes captures of windows and not a capture of the whole screen... :x If you know a good soft which works, please tell me, I'm getting really mad :evil:

Plus isn't there any command with rundll32 for example to do this? When I think that the single key "printscreen" on the key board takes a screen capture...

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Tue Jun 21, 2005 8:30 pm

If I take this as slightly to do with wxWidgets, I'd suggest saving a wxScreenDC into a file... but...
From the command line I don't know. I know for linux, but not cross-platform or for windows.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

GianT
Earned some good credits
Earned some good credits
Posts: 124
Joined: Wed Mar 16, 2005 5:44 pm
Location: Guadeloupe, French West Indies
Contact:

Post by GianT » Tue Jun 21, 2005 10:40 pm

Thx, but finally I found a soft to do it directly by the command line: Capturemation. It does it works within less than a second and it does it in the background :) But you should download it with a specialized download manager, cause I couldn't get the entire file both with mozilla and internet explorer.

wxScreenDC hmm? :-k It's said in the doc that it is used to paint on the screen, not to capture it...
Sorry to be that lazy, but from the moment I get a solution which works well, It's Ok :D

Post Reply