问题描述
我能够捕获 NSWindow
,这些是使用与
I'm able to capture NSWindow
s which are visible using code simular to the SonOfGrab Example
但是如何捕获隐藏的 NSWindow
?或者从用户隐藏 NSWindow
但是仍然出现在de Windowserver中的方法是什么?
But how can I capture a hidden NSWindow
? Or what is the way to hide a NSWindow
from the user but to still appear in de Windowserver?
谢谢提前!
推荐答案
无法捕获屏幕上看不到的NSWindow的内容。当一个窗口被最小化/隐藏/无论什么时,可视表示被删除以节省内存。
It isn't possible to capture the contents of an NSWindow which isn't visible on-screen. When a window is minimized/hidden/whatever, the visual representation is dropped to save memory.
(不确定如何管理它,如果在你对窗口系统有更深入的了解。我只是从经验中知道这一点,试图用CamTwist和BoinxTV捕捉窗户。)
(Not sure on exactly how this is managed, feel free to chime in if you have a deeper knowledge of the window system. I only know this from experience, trying to capture windows with CamTwist and BoinxTV.)
这篇关于捕获隐藏的NSWindow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!