Re: Using win32gui.FindWindow() results in black or white screen
Tim Roberts <[email protected]>
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <[email protected]> |
CodingMan125 wrote: > > > Dear, List Members using the FindWindow function from win32gui to find > the window handle of a certain window through window name to enable > video capture of certain window results in a black screen. Although > trying the same code without a window handle to default it to > capturing the whole screen results in a successful video capture, the > same code however results in a black or white screen when trying to > capture a specific window with window handle. How can I solve this? > In general, you can't. From your description and from the comments in the code, I'm assuming you're trying to capture some kind of multimedia stream -- a movie playback or a camera live view. In that case, the video stream is not actually contained in the application window. Instead, the video is rendered in its native format (usually a YUV format) into an offscreen region. That offscreen region is then used as a texture surface which the GPU's 3D engine renders onto the visible screen. The application window remains a solid color, which is used as a chromakey (like a "green screen") to allow menus to be easily drawn on top. -- Tim Roberts, [email protected] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32
smime.p7s
(application/pkcs7-signature, 3.3 KB) - not displayed