Jump to content

Monitor ausschalten


Recommended Posts

In letzter Zeit hatte ich zweimal im Forum ein Mini-Programm angehängt, dass den Monitor ausschaltet, musste jetzt allerdings feststellen, dass es mit WinXP SP2 so nicht funktioniert (mit SP1 ging es noch).

 

Deshalb hier eine verbesserte Version, die auch mit SP2 ihren Dienst tut. Da die kleinste Mausbewegung den Monitor wieder einschaltet, arbeitet das Programm mit einer Sekunde Verzögerung, damit man nach dem Start noch Zeit hat, die Hand wegzunehmen.

 

Hier für Programmierer der minimalistische Delphi-Code: ;)

 

program MonitorOff;

uses
 Windows, Messages;

begin
 Sleep(1000);
 PostMessage(HWND_TOPMOST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
end.

MonitorOff.zip

Link to comment

kannste den Ton auch noch ausmachen?

Wäre dann so eine Art Notschalter wenn der Chef um die Ecke schaut und man schnell alles ausmachen will...

Link to comment
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...