Detect when users take screenshots of my program

前端 未结 10 1483
猫巷女王i
猫巷女王i 2020-12-09 13:38

I\'m writing a Windows application. How can I tell when a screenshot is being taken of it? I read about how to detect the hotkey being pressed, but I\'m more worried about t

10条回答
  •  被撕碎了的回忆
    2020-12-09 14:00

    Another reason why I think it will be impossible to achieve this:

    A long time ago, I failed to make a screen capture of the content of Windows Media Player, because (I assumed) WMP streamed that content to the videocard right away. (Fun detail: after pasting the screen capture, the video would continue playing in MS Paint, but saving the image would eventually yield a black square). Anyway, using VNC made it very easy to get the screen capture after all.

提交回复
热议问题