DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: MiniCap screenshot completely white - run from Scheduled Task  (Read 7,656 times)

alexs77

  • Participant
  • Joined in 2010
  • *
  • Posts: 4
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...

SVNPC01324 Pre-Run 2010-07-30 12.00.02.png

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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: MiniCap screenshot completely white - run from Scheduled Task
« Reply #1 on: July 30, 2010, 12:51 PM »
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?

alexs77

  • Participant
  • Joined in 2010
  • *
  • Posts: 4
Re: MiniCap screenshot completely white - run from Scheduled Task
« Reply #2 on: July 30, 2010, 12:54 PM »
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.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: MiniCap screenshot completely white - run from Scheduled Task
« Reply #3 on: July 30, 2010, 01:10 PM »
can you see if its only -capturedesktop that is yielding white captures, what about -capturescreeen

alexs77

  • Participant
  • Joined in 2010
  • *
  • Posts: 4
Re: MiniCap screenshot completely white - run from Scheduled Task
« Reply #4 on: July 30, 2010, 01:25 PM »
-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*)

alexs77

  • Participant
  • Joined in 2010
  • *
  • Posts: 4
Re: MiniCap screenshot completely white - run from Scheduled Task
« Reply #5 on: July 30, 2010, 01:29 PM »
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.

Original address: https://www.donationcoder.com/forum/index.php?topic=23579.0