alex2k8
alex2k8

Reputation: 43214

Taking a screenshot of the window in the background

Will it be any problems to take a screenshot of the window content, if that window is overlapped by some other application.

Upvotes: 1

Views: 4160

Answers (3)

Jared Updike
Jared Updike

Reputation: 7277

This is possible / easy with PrintWindow (user32.dll). For a detailed code example, see Capturing Windows Regardless of Their Z-Order.

Upvotes: 1

Naveen
Naveen

Reputation: 6008

You could hide the top window, then do the screenshot. In autohotkey: use winhide:

WinHide, window_name

your snapshot code here, then

 WinShow, window_name

Upvotes: 0

ChrisF
ChrisF

Reputation: 137108

Unless you've got a method in the application to render it to an off-screen bitmap you'll only get the visible portions of the window.

Upvotes: 0

Related Questions