How to determine that a screensaver is running?

前端 未结 5 2026
暖寄归人
暖寄归人 2021-01-13 22:08

One solution that one could suggest is to periodically look for a special \'Screen-saver\' desktop, and if it\'s present then count it as a running screensaver.

But

5条回答
  •  有刺的猬
    2021-01-13 22:27

    I think the key is to identify the screensaver by its window class ("WindowsScreenSaverClass"). I found this page How do I start, detect and stop screen savers? that has some code examples and explanations.

提交回复
热议问题