Solved

Delphi ScreenSaver VS Energy Saving for monitor

Posted on 1997-03-17
6
291 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now