nircmd.exe savescreenshot

Problems with the Windows version of XAMPP, questions, comments, and anything related.

nircmd.exe savescreenshot

Postby Brian_LaClair » 28. April 2011 01:58

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
Brian_LaClair
 
Posts: 2
Joined: 28. April 2011 01:46

Re: nircmd.exe savescreenshot

Postby Brian_LaClair » 30. April 2011 17:56

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.
Brian_LaClair
 
Posts: 2
Joined: 28. April 2011 01:46


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests