简体   繁体   English

DwmRegisterThumbnail 在后台时无法捕获浏览器

[英]DwmRegisterThumbnail unable to capture browser when its on background

Im using the winapi DwmRegisterThumbnail to capture the browser thumbnail to my GUI, however when i move the browser to background it stop rendering the thumbnail, my thought its a browser setting to reduce use of resources or something like?我使用 winapi DwmRegisterThumbnail将浏览器缩略图捕获到我的 GUI,但是当我将浏览器移到后台时它停止呈现缩略图,我认为它是一种浏览器设置以减少资源使用或类似的东西?

If i move the mouse over the browser at the taskbar, it creates the thumbnail and start capturing it, however as soon the thumbnail is closed it stops capturing.如果我将鼠标移到任务栏的浏览器上,它会创建缩略图并开始捕获它,但是一旦缩略图关闭,它就会停止捕获。

It only happens on browsers (tested chrome, edge and opera), i also have tested many other applications and i was able to capture the thumbnail correctly even when these windows was on background.它只发生在browsers上(经过测试的 chrome、edge 和 opera),我还测试了许多其他应用程序,即使这些 windows 在后台,我也能够正确捕获缩略图。

Does someone know something about it?有人知道吗?

I was able to solve it by changing the flag:我能够通过更改标志来解决它:

chrome://flags/#calculate-native-win-occlusion

From "default" to "disabled".从“默认”到“禁用”。

source: https://www.reddit.com/r/incremental_games/comments/l1eec1/psa_disable_window_occlusion_calculation_on/来源: https://www.reddit.com/r/incremental_games/comments/l1eec1/psa_disable_window_occlusion_calculation_on/

Thank you zett42 for pointing it!谢谢zett42指点!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 加载浏览器后在后台连续运行chrome扩展程序 - continuously run chrome extension in background when browser is loaded 打开打印预览时,Chrome浏览器无法拨打服务器电话 - Chrome browser unable to make a server call when print preview is opened 使用浏览器时找不到Java控制台 - Unable to find java console when using browser 在浏览器中捕获媒体键事件 - Capture media key events in a browser 如何捕获或收听浏览器通知? - How to capture or listen to browser notifications? 从浏览器捕获系统声音 - Capture system sound from browser 如何在移动设备处于睡眠模式或浏览器处于后台时使用 web 应用程序在移动浏览器中使用 HTML 地理位置 API 获取位置? - How to get location using HTML Geolocation API in mobile browser using web application when mobile is in sleep mode or when browser is in background? 如何通过Google Chrome浏览器删除翻译警告? 当用英语显示Chrome时,该页面位于马来语中 - How to remove translation warning by Google chrome browser? Chrome saying page is in Malay when its in English Chrome扩展程序-在后台打开浏览器时打开新标签页(Mac) - Chrome extension - open new tab when browser opened in background (Mac) 在 Puppeteer 中如何在控制台中捕获 Chrome 浏览器日志 - In Puppeteer how to capture Chrome browser log in the console
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM