检测激活的屏幕保护程序 [英] detecting activating screen saver
本文介绍了检测激活的屏幕保护程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想编写以下代码,如果我的应用程序正在运行,然后激活屏幕保护程序,则关闭我的应用程序并加载登录表单.
我搜索并找到了一些示例,但不能解决我的问题.
请帮助我
非常感谢
解决方案
,您可以使用uiAction == SPI_GETSCREENSAVERRUNNING的"New Window> ^ ],以便查明屏幕保护程序是否处于活动状态,因此,据我所知,我建议您设置一个计时器,并每隔1-调用一次SystemParametersInfo
10秒.
hi
i have a problem with detecting the active screen saver in vb.
i want to write the code that if my application is running and then the screen saver be activate, then my application be closed and the login form be loaded.
i searched and found some examples but doesnt solve my problem.
plz help me
thanks alot
解决方案
you can use SystemParametersInfo[^] withuiAction == SPI_GETSCREENSAVERRUNNING
inorder to find out whether or not the screen saver is active, so as I know of no other way I suggest you setup a timer and callSystemParametersInfo
every 1-10 seconds.
这篇关于检测激活的屏幕保护程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文