LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Notification when screen saver goes active

My program needs to know when the Windows screen saver becomes active.  Is there some way to catch an OS event that indicates that the screen saver has become active?

 

Tony G.

0 Kudos
Message 1 of 2
(2,862 Views)

Reading here, I think you can use InstallWinMsgCallback() to get the WM_SYSCOMMAND message with WParam == SC_SCREENSAVER when the scrrensaver starts.

In the page I linked there's an explanation on how to detect if screensaver is still running.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 2 of 2
(2,857 Views)