Click here to Skip to main content
15,895,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
Philippe Mori 16-Sep-11 19:22pm    
Leave things work how they are intended to work...

1 solution

you can use SystemParametersInfo[^] with uiAction == 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 call SystemParametersInfo every 1-10 seconds.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900