ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Screenshot Captor

Capture hidden window from command line while keeping window hidden

(1/1)

smileypete:
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:
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:
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).

mouser:
Is it possible at all to capture a window that's obscured, whether partially or entirely?
--- End quote ---
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:
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.
-mouser (August 12, 2010, 10:29 AM)
--- End quote ---
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.

Navigation

[0] Message Index

Go to full version