View Full Version : Monitor Power Saving Mode Prventing
Mark F
October 13th, 2002, 12:55 PM
Yes, response on it's way. :)
mitko
October 13th, 2002, 12:55 PM
I know it's not the right place but I'm desperate because I did a lot of searching and couldn't find anything. I hope some of the guys here could help me.
The problem is that I want to be able to prevent the monitor from going off while watching a movie or s.th. else and go off after about 15 minutes when there is no action. I don't want every time to go to Control Panel->Power Management.
Does any body knows if there is a command (API or s.th.) that can stop the monitor from going of or a Message that is sent when the monitor goes off so I can catch it? (I'm talking about s.th. like preventing the Screen Saver from starting by catching the WM_SYSCOMMAND message with WParam = SC_SCREENSAVE). I know this should be possible because Media Player does it - it prevents the monitor from going off while the player is in PLAY mode and allows monitor off when in other mode.
mitko
October 13th, 2002, 12:55 PM
:)
I found the API function that will do the trick
SetThreadExecutionState(ES_DISPLAY_REQUIRED + ES_CONTINUOUS);
but I need to call it from Delphi.
Can someone help me? I'm not good enough in programming :oops:
mitko
October 13th, 2002, 12:55 PM
Mark did you get the PM Reply?
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.