Disable turning the screen off
-
Hello I would like to disable the outomatic turning off the screen, i.e. I want that the screen will always be on. I need that the project will be suitable also to windows xp accordingly, I can't use the function "RegisterPowerSettingNotification " . If anyone know another way to do it I would be glad if he can write it to me. thanks
-
Hello I would like to disable the outomatic turning off the screen, i.e. I want that the screen will always be on. I need that the project will be suitable also to windows xp accordingly, I can't use the function "RegisterPowerSettingNotification " . If anyone know another way to do it I would be glad if he can write it to me. thanks
You can use
SystemParametersInfo()
with theSPI_SETSCREENSAVEACTIVE
parameter to control the screensaver. You may also need to use the same API with theSPI_SETPOWEROFFACTIVE
parameter.Best wishes, Hans
-
Hello I would like to disable the outomatic turning off the screen, i.e. I want that the screen will always be on. I need that the project will be suitable also to windows xp accordingly, I can't use the function "RegisterPowerSettingNotification " . If anyone know another way to do it I would be glad if he can write it to me. thanks
aangerma wrote:
I would like to disable the outomatic turning off the screen,
i.e. I want that the screen will always be on.Sounds like you need to notify someone of something important? I'm not always looking at a screen, and sometimes we even turn off the physical monitor. Now, if something is amiss, the machine starts beeping, and will keep beeping until someone goes check on it - beep was chosen because it's hooked to the internal speaker, and doesn't rely on the availability of a sound-card :)
I are Troll :suss:
-
aangerma wrote:
I would like to disable the outomatic turning off the screen,
i.e. I want that the screen will always be on.Sounds like you need to notify someone of something important? I'm not always looking at a screen, and sometimes we even turn off the physical monitor. Now, if something is amiss, the machine starts beeping, and will keep beeping until someone goes check on it - beep was chosen because it's hooked to the internal speaker, and doesn't rely on the availability of a sound-card :)
I are Troll :suss:
-
Hello I would like to disable the outomatic turning off the screen, i.e. I want that the screen will always be on. I need that the project will be suitable also to windows xp accordingly, I can't use the function "RegisterPowerSettingNotification " . If anyone know another way to do it I would be glad if he can write it to me. thanks
In general, messing up the user settings of a system from an application is not a good idea. If the system is not used for that sole purpose, the user may have good reasons you cannot even imagine to keep the screen off (sometimes I even switch off the physical monitor!). By forcing it to be always on you're forcing a user system-requirement. Try thinking a user that uses your application and another one that -for reasons opposite to yours- want to force it off. What a mess! If the system is instead dedicated to your application (it will be in use for that only purpose ...) why not just configure it to have th screen always on, independently on your code?
2 bugs found. > recompile ... 65534 bugs found. :doh:
-
In general, messing up the user settings of a system from an application is not a good idea. If the system is not used for that sole purpose, the user may have good reasons you cannot even imagine to keep the screen off (sometimes I even switch off the physical monitor!). By forcing it to be always on you're forcing a user system-requirement. Try thinking a user that uses your application and another one that -for reasons opposite to yours- want to force it off. What a mess! If the system is instead dedicated to your application (it will be in use for that only purpose ...) why not just configure it to have th screen always on, independently on your code?
2 bugs found. > recompile ... 65534 bugs found. :doh:
-
The purpose of the system is that the nurse will be able to see the calls from distance, on screen that places on central place, if some one will change the settings of the computer the screen might turn off . thanks again.
Ok, the context is now known. In such environment, hardware/software are regulated (by hospital authority) , and you should not have to deal with that, if a monitor needs to always be turned-on, then the admin will change the "power settings" to no go into power-saving mode (and probably the screen saver will be disabled for normal users). IMO, there should also be other means of communicating to the nurses (pagers, ... ). M.
Watched code never compiles.