How to prevent Screen Saver from turning on
-
I'm generating an animation on the screen and the screen saver kicks in since there is no keyboard/mouse interaction from the user. Is there any MFC/Win32 to reset the screen saver timer ? Worst comes to worse I might try a SendMessage() with WM_COMMAND/BN_CLICKED periodically to simulate user interaction but there must be some more elegant solution. Thanks for your input Alex
asta la vista baby
-
I'm generating an animation on the screen and the screen saver kicks in since there is no keyboard/mouse interaction from the user. Is there any MFC/Win32 to reset the screen saver timer ? Worst comes to worse I might try a SendMessage() with WM_COMMAND/BN_CLICKED periodically to simulate user interaction but there must be some more elegant solution. Thanks for your input Alex
asta la vista baby
-
I'm generating an animation on the screen and the screen saver kicks in since there is no keyboard/mouse interaction from the user. Is there any MFC/Win32 to reset the screen saver timer ? Worst comes to worse I might try a SendMessage() with WM_COMMAND/BN_CLICKED periodically to simulate user interaction but there must be some more elegant solution. Thanks for your input Alex
asta la vista baby
Call
SetThreadExecutionState(ES_DISPLAY_REQUIRED)
to tell the system that you're using the display.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
-
Call
SetThreadExecutionState(ES_DISPLAY_REQUIRED)
to tell the system that you're using the display.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
-
Those docs need some cleanup, since they also say:
Multimedia applications, such as video players and presentation applications, must use ES_DISPLAY_REQUIRED when they display video for long periods of time without user input.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?