ra1nty / DXcam

A Python high-performance screen capture library for Windows using Desktop Duplication API
MIT License
504 stars 70 forks source link

How can I take screenshots based on the specified hwnd #87

Open woshiagan opened 6 months ago

woshiagan commented 6 months ago

I obtained hwnd through Win32, but I want to use dxcam to take a screenshot. If I obtain a screenshot through hwnd

lovettchris commented 2 months ago

https://github.com/lovettchris/wincam supports this. See the mirror.py script which takes an --hwnd argument, you can also specify a process id, or a point on the screen from which to find the window to capture (which can be handy in cases where the hwnd is hard to find).