Screenshot of Hidden Window

前端 未结 2 1841
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 08:54

I need to take a screenshot of a currently hidden window without giving focus to that window. I saw a post on this, here: Window screenshot using WinAPI

I\'ve never

2条回答
  •  生来不讨喜
    2020-12-21 09:12

    It's hard to imagine that you could have one solution that would work on Windows and OS X. The windowing frameworks are completely different. It would be harder to try to come up with one solution that to write two.

    On Windows at least, I'm not convinced you'll have much luck taking a screenshot of a hidden or obscured window. When you search for this on the web, there are a gazillion hits for people asking that very question. None of them appear to have succeeded. If you factor in DWM and Aero glass then I think your chances of success are limited.

提交回复
热议问题