Re: Using win32gui.FindWindow() results in black or white screen
Dennis Lee Bieber <[email protected]>
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Organization | IISS Elusive Unicorn |
| Message-ID | <[email protected]> |
On Wed, 2 Jun 2021 18:09:52 -0400, CodingMan125 <[email protected]> declaimed the following: >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? Many video apps don't display in "Windows". The window you grabbed is a basically a hole through which the graphics chips are rendering and are not available, and the render is not part of the window itself. When grabbing the entire screen, you are getting the screen buffer which includes the video. -- Wulfraed Dennis Lee Bieber AF6VN [email protected] http://wlfraed.microdiversity.freeddns.org/