Solved

Delphi ScreenSaver VS Energy Saving for monitor

Posted on 1997-03-17
6
294 Views
Last Modified: 2010-05-18
What code should I insert in my Delphi screen saver program to keep it compatible with Energy Saving monitors (GREEN monitors)?

I made a screen saver that working well but it desactivate that monitor function...
0
Comment
Question by:pasta
  • 2
  • 2
  • 2
6 Comments
 

Author Comment

by:pasta
ID: 1334886
Edited text of question
0
 

Author Comment

by:pasta
ID: 1334887
Edited text of question
0
 
LVL 3

Expert Comment

by:sperling
ID: 1334888
Shouldn't be necessarry?

Is your screen saver doing something besides displaying graphics? E.g, does it have edit-boxes, buttons and so on? Does it create/destroy windows? Try creating a screen saver that does nothing, and see if the problem persists.


Regards,

Erik.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Accepted Solution

by:
mheacock earned 50 total points
ID: 1334889
Windows controls this functionality.  You might be able to interface with it directly, but you shouldn't need to.  As long as the keyboard and mouse haven't moved for a certain length of time, the energy saving feature will always be 'run' by Win95.
0
 
LVL 3

Expert Comment

by:sperling
ID: 1334890
Not necessarily correct. It is not very difficult to make a screen-saver that prevents the energy saving features from being enabled, no matter whether you use the mouse/keyboard or not.
And, as the question implies, this is exactly what the asker has done.

Regards,

Erik
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1334891
The _SetSystemPowerState_ API command may be what you are looking for.  I'm not positive it will work with monitors with energy saving features, but the desciption they give in my API book seems to suggest that when executed, certain Energy Saving messages are broadcast to all drivers.  I would suspect that video drivers would receive the message too.

Experiment with it and see if it will do what you want.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi: how to send PJL commands to printer 3 109
How to debug For loops? 3 57
Tidtcpserver listening on multiports? 1 35
Breakpoint doesn't stop in my variable 3 30
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question