DonationCoder.com Forum

DonationCoder.com Software => Mouser's Zone => Screenshot Captor => Topic started by: alexs77 on July 30, 2010, 05:16 AM

Title: MiniCap screenshot completely white - run from Scheduled Task
Post by: alexs77 on July 30, 2010, 05:16 AM
Hi.

I'm using MiniCap v1.21.01 on a Windows XP system. To create the screenshot, I'm using the following commands in a .cmd file:

SET SCRIPT_DIR=D:\PerformanceTests\Scripts
%SCRIPT_DIR%"\MiniCap\MiniCap.exe" -capturedesktop -save %SCRIPT_DIR%"\..\Report\Logs\Screenshots\Pre-Run\%COMPUTERNAME% Pre-Run $customdate$.png" -customdate "$Y-$m-$d $H.$M.$S" -exit


But this doesn't look so good...

[ You are not allowed to view attachments ]

As you can see, the image is completely white. That's not what I expected. When I run the above command manually in a cmd window, MiniCap creates a screenshot the way it's supposed to be. But I need to create screenshots from a Scheduled Task, which runs a .cmd batch file. I'm not logged in when the Scheduled Task is run and the desktop is then also locked.

Is there a way to create a screenshot showing actual content under these circumstances?

Thanks a lot for your help,
Alexander
Title: Re: MiniCap screenshot completely white - run from Scheduled Task
Post by: mouser on July 30, 2010, 07:51 AM
i wonder if this has to do with the scheduled task running under lesser permissions than needed.  is there an way through scheduler to run minicap task as an administrator?
Title: Re: MiniCap screenshot completely white - run from Scheduled Task
Post by: alexs77 on July 30, 2010, 07:54 AM
I doubt it has to do with permissions. If I logon to the system using RDP and preventing the system from locking the desktop, I get good screenshots.

The scheduled task is set to only run when the user is logged in, BTW. I automatically login after boot.
Title: Re: MiniCap screenshot completely white - run from Scheduled Task
Post by: mouser on July 30, 2010, 08:10 AM
can you see if its only -capturedesktop that is yielding white captures, what about -capturescreeen
Title: Re: MiniCap screenshot completely white - run from Scheduled Task
Post by: alexs77 on July 30, 2010, 08:25 AM
-capturescreen also generated a white image file. I also tried -captureregion: No success there either :(

BTW: It's not just MiniCap which "doesn't work": I also tried NirCmd http://www.nirsoft.net/utils/nircmd.html and it "misbehaves" the same way (well, sorta - it makes black images... *G*)
Title: Re: MiniCap screenshot completely white - run from Scheduled Task
Post by: alexs77 on July 30, 2010, 08:29 AM
BTW: It's easy to reproduce: Create a Scheduled Task using the command shown in my first post. Set it to run "if logged in". Logout, wait until time scheduled task has run, login, look at screenshot taken.