Welcome Guest.   Make a donation to an author on the site December 20, 2014, 02:10:17 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Capture hidden window from command line while keeping window hidden  (Read 2564 times)
smileypete
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« on: August 12, 2010, 04:30:27 AM »

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.
Logged
mouser
First Author
Administrator
*****
Posts: 33,789



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.
Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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).
Logged

- carpe noctem
mouser
First Author
Administrator
*****
Posts: 33,789



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.
Logged
smileypete
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« 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.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.027s | Server load: 0.12 ]