flat assembler
Message board for the users of flat assembler.
Index
> Windows > How do you disable screensaver in code? |
Author |
|
coconut 22 Aug 2004, 19:42
you can manually disable screen saver and monitor turning off (power-saving feature) in windows. what version are you running?
|
|||
22 Aug 2004, 19:42 |
|
mike.dld 22 Aug 2004, 20:17
You can't disable it (probably) but you may say Windows that it's already running so it won't turn it on. Use SystemParametersInfo with SPI_SETSCREENSAVEACTIVE. Alternatively, you may use that function to set timeout for the screensaver (e.g. to -1, if it's long enough for you) with SPI_SETSCREENSAVETIMEOUT
|
|||
22 Aug 2004, 20:17 |
|
ShortCoder 23 Aug 2004, 19:17
Thanks mike. I think the SPI_SETSCREENSAVEACTIVE thing is exactly what I need--I need to try that sometime.
coconut, no, I want to know how to do this in my own software so that if someone else was using it on his or her computer and using only joystick, that the screensaver wouldn't pop in on them and annoy. It is one matter to manually change things for your own machine but I want this automated so that other people don't HAVE to manually do it--get it? _________________ Boycott Symantec/Norton/PowerQuest whenever possible |
|||
23 Aug 2004, 19:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.