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: how do I capture the current window (not full screen)  (Read 5,624 times)

jcollum

  • Participant
  • Joined in 2011
  • *
  • Posts: 17
how do I capture the current window (not full screen)
« on: August 16, 2011, 05:49 PM »
Read over the docs and I'm not seeing how to capture the active window only. Tried a few things (-setfore, -client) and still it's not working.

    "c:\Program Files\MiniCap\minicap.exe" -save "c:\temp\screenshots\capture_$customdate$_$appname$.png" -customdate "$Y$m$d_$H$M$S" -sleep 2 -closeapp -exit -client

I see options for capturing the screen and the whole desktop. Seems that not turning on either of those, it'd default to just the active window. But when I run that command (with or without -client) it never captures, it just doesn't do anything (update: it starts the redbox mode, but that gets hidden by the window).

I did manage to get what I want by using -captureregselect but I'd ideally like to write a bat file that just dumps the current active app to a screenshot after a delay.

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: how do I capture the current window (not full screen)
« Reply #1 on: August 16, 2011, 09:08 PM »
Have you tried
-captureactivewin

jcollum

  • Participant
  • Joined in 2011
  • *
  • Posts: 17
Re: how do I capture the current window (not full screen)
« Reply #2 on: August 16, 2011, 09:12 PM »

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: how do I capture the current window (not full screen)
« Reply #3 on: August 16, 2011, 09:28 PM »
i reallly have to update that page; if you actually read the HELP file online you will find tons more options.

http://www.donationcoder.com/Software/Mouser/MiniCap/help/index.html

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