Hi,
I would like to know how (if) I can temporarily disable the most common screensavers with wxWidgets?
As it is a multi-plattform-media-app (Linux+Windows, maybe MacOS sometime), displaying some images/movies, it would be desirable to switch of the screensavers of at least these systems/platforms, while data is displayed:
Win32,
KDE,
Gnome,
X11
Is that possible at all? If it is not possible with wxWidgets directly has anyone good pointers to information of how I can check if any of these is/are running and how to temp. turn it off?
cu
Stefan
temporarily disable screensaver(s) on various plattforms? Topic is solved
-
- wxWorld Domination!
- Posts: 1059
- Joined: Sun Dec 30, 2007 6:40 pm
- Location: Canada
Hi Stefan,
On Windows you should be able to call
to disable the screen saver. Change the false to true turn it back on.
See http://msdn.microsoft.com/en-us/library/ms724947.aspx
Hope that helps,
Jim
On Windows you should be able to call
Code: Select all
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, false, 0, 0);
to disable the screen saver. Change the false to true turn it back on.
See http://msdn.microsoft.com/en-us/library/ms724947.aspx
Hope that helps,
Jim
OS: Vista SP1, wxWidgets 2.8.7.