[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 332
  • Last Modified:

Keep monitor power off

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
aegressy
Asked:
aegressy
  • 2
1 Solution
 
Roshan DavisCommented:
>> 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
 
aegressyAuthor Commented:
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
 
Roshan DavisCommented:
Its only a guess, I never tried.

Thats why I answered it as "NO"

Regards
Roshmon
0
 
moduloCommented:
PAQed, with points refunded (75)

modulo
Community Support Moderator
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now