Solved

Keep monitor power off

Posted on 2002-06-09
6
326 Views
Last Modified: 2013-12-03
Dear Sirs,

  is it possibble to turn off the monitor in Windows 2000 and KEEP IT OFFLINE even the mouse moves or a key is pressed during a period?

Note:
I can turn off the monitor using the following code, but on a mouse movement or when a key is pressed the monitor automatically goes on :-( And I don't want it...

The code is:

SendMessage( HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2 )

Regards
Aegressy
0
Comment
Question by:aegressy
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7066155
>> is it possibble to turn off the monitor in Windows 2000 and KEEP IT OFFLINE even the mouse moves or
a key is pressed during a period?

Think the answer is "NO"

Through the software Power OFF is only for saving the power - Thats a windows feature. We can only the windows to power off the monitor.

I think, One thing you can do is making a hook and call the syscommand again in mouse actions. But I will not suggest this. Becoz this is not a direct way to do this.

Roshmon
0
 

Author Comment

by:aegressy
ID: 7068290
Hmm, or can I make a hook on syscommand SC_MONITORPOWER and restrict to complete the power on process. Do you think it is possibble?

Aegressy
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7069059
Its only a guess, I never tried.

Thats why I answered it as "NO"

Regards
Roshmon
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10786232
PAQed, with points refunded (75)

modulo
Community Support Moderator
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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