Sign in to follow this  
Followers 0
DW1

Screenshot of hidden window

11 posts in this topic

Is there a way to take a screenshot of a window that is not in view? I was using a script from the forums that would obtain a bmp or jpg, but I don't know how to make a bmp or jpg of a window that the user cannot see.

I was messing around with a flash game collector and would like to incorporate screen shots of the games, but I don't want the user to have to open the game or see it open before they can see the screen shot. Any ideas?

Share this post


Link to post
Share on other sites

If a window is hidden or not open it has no screen to take a screenshot off.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Can you get a family portrait without grandma?

Share this post


Link to post
Share on other sites

Can you get a family portrait without grandma?

Sure... photoshop :)

Share this post


Link to post
Share on other sites

Sure... photoshop :)

Well there is the solution. Apparently you can grab a screenshot of the desktop and superimpose a picture of the hidden app later when you find it.

Share this post


Link to post
Share on other sites

Well there is the solution. Apparently you can grab a screenshot of the desktop and superimpose a picture of the hidden app later when you find it.

AH HA! We've nabbed it in the hind-quarters now!

Share this post


Link to post
Share on other sites

wow, glad I came back from lunch for such a sweet...... solution(?)

LOL

so.... A simple no would be fine.

Would it be possible to get this effect with the window "visible" but offscreen?

Or am I wanting an impossible thing?

Share this post


Link to post
Share on other sites

If it is off the screen there is no picture to screenshot



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

You may try to copy content of hidden window from its DC (device context).

Look at Auto3Library for functions for doing this.

But I'm not sure if DC of hidden window contains window image or if it's there only in visible windows.

Share this post


Link to post
Share on other sites

If window is minimized, it's not possible to get it's image, looks like if window hidden - too. But if this just behind other windows - this can be done with PrintWindow function.

In attach an example of how use it. This was done time ago, it's unfinished, quite raw and messy. Bitmap saving routines are made by eltorro, I'm use them for speedy.

Maybe this give you start point.

PrintWin.zip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0