-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to capture hardware accelerated windows #6
Comments
Ok thanks for the feedback. I haven't tested on windows 11 and it shows :) I'll look into it |
I'll add a debug flag to save the screenshots in order to see what's been captured. |
@ASleepyCat I've added a debug mode. You can check the README for instructions. |
In Chrome Canary, disabling hardware acceleration makes the screenshots function correctly (and I assume it works the same in Edge). |
I will have to look into it. I've seen that there are other ways to capture screenshots on windows. |
The issues comes from the capture library so I've opened an issue there bquenin/captured#2 |
Using this image as a test, the program fails to recognise any of the text in the browser.
I checked what the screenshot comes out as, and it's a completely black image. The dimensions seem correct though.
OS Build is 22622.290 (22H2).
Edit: In mpv, the screenshots actually show something but they don't capture the window correctly. It instead shows my browser and a part of Windows Terminal that were beneath the window. It's extra weird since the tab that's showing was closed when the screenshot was taken, and I had also closed Terminal as well. At least the text recognition is working.
Edit 2: The screenshot appears to take what was underneath the window the moment the target program was opened, but it doesn't update what's displayed on the windows underneath, which explains my situation above. But sometimes it does take a correct screenshot, but it still doesn't show the updated window. Idk, I have no experience with Win32 APIs so my fiddling around hasn't really accomplished much.
The text was updated successfully, but these errors were encountered: