Page 1 of 1

nircmd.exe savescreenshot

PostPosted: 28. April 2011 01:58
by Brian_LaClair
Hello all!

I'm trying to use the system command to create a screenshot.
Code: Select all
system('nircmd.exe savescreenshot "screen.jpg"');


Although it does create an image, it's a black image.

Image

Any ideas on how I can get it to work correctly? Thank you in advanced,

Brian

Re: nircmd.exe savescreenshot

PostPosted: 30. April 2011 17:56
by Brian_LaClair
wole wrote:
Brian_LaClair wrote:Any ideas on how I can get it to work correctly?
I am not sure, but nircmd canot jpg.
In the example are png-files.
Try this:
Code: Select all
nircmd.exe savescreenshot "{LW}:\{folder}\screen.png"


It's able to when I run it through CMD, but hold on and i'll try switching to using another format...
Still the same output of a black .PNG image, at the same resolution of 1024x768.