Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • August 31, 2015, 12:51:21 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Capture hidden window from command line while keeping window hidden  (Read 2688 times)

smileypete

  • Participant
  • Joined in 2010
  • *
  • gravatar avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Hi,

By hidden window I mean one that's covered by other windows.

I've tried doing this with Minicap but it always brings to window to the front.

Does anyone know of other utilities out there that can do this?

many thanks,
Pete.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,950
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Capture hidden window from command line while keeping window hidden
« Reply #1 on: August 12, 2010, 08:33:25 AM »
there may be a way to add this feature to minicap; i have something else i have to add as well, so maybe i can try.  i'm not sure it will work but it should be easy to try and find out.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 8,858
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Donate to Member
Re: Capture hidden window from command line while keeping window hidden
« Reply #2 on: August 12, 2010, 10:22:55 AM »
Is it possible at all to capture a window that's obscured, whether partially or entirely?

(Under Vista+ with Aero enabled it probably is, but I'm thinking across all versions).
- carpe noctem

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 34,950
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Capture hidden window from command line while keeping window hidden
« Reply #3 on: August 12, 2010, 10:29:28 AM »
Quote
Is it possible at all to capture a window that's obscured, whether partially or entirely?
i believe it is -- there is a print-like api command to instruct a window to paint itself to an offscreen buffer.
screenshot captor uses it in some cases, but not all.

what is being asked for may be solvable by skipping any force-foreground call in the minicap code, and ensuring that the print api command is used.  it may not always work but providing an option to try it is worth a try.

smileypete

  • Participant
  • Joined in 2010
  • *
  • gravatar avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: Capture hidden window from command line while keeping window hidden
« Reply #4 on: August 17, 2010, 06:20:13 AM »
what is being asked for may be solvable by skipping any force-foreground call in the minicap code, and ensuring that the print api command is used.  it may not always work but providing an option to try it is worth a try.
Thanks. As I understand it in normal use the OS asks the window to repaint itself into desktop memory space when the window is moved, brought to the top, etc. So there's a good chance it's possible if the window can be asked to paint itself into a provided buffer.

I found a lot of material on capturing hidden windows in a Google search, but nothing on a simple utility that would do it.

In Minicap there's a -setfore 'Set window to be captured to foreground before capturing' switch, but it seems to be implicit as the window is always brought to the foreground without using it.

So if MiniCap can be made to capture hidden windows, maybe a -nofore switch would be one way to go. If the switch is used the program would attempt capture without bringing the window to the foreground and keeping it hidden.

cheers,
Pete.