🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #200

temporary disable Powermanagement of Monitor

#200
From: Frank Wunderlich
Date: Fri, 14 May 2004 15:53
12 lines
1537 bytes
hi,
is where any Way to disable Monitor-Poweroff in Windows XP?
i've tried catching WM_Syscommand with wParam SC_MONITORPOWER and
SystemParametersInfo with SPI_SETPOWEROFFACTIVE, but nothing works. I can
simulate Mouseactions in a timer-event like this
    Mouse_Event(MOUSEEVENTF_MOVE, $00000001, 0, 0, 0);
    Mouse_Event(MOUSEEVENTF_MOVE, $FFFFFFFF, 0, 0, 0);
but this is IMHO a dirty solution. Is there a better way to do what i want?

Thx in advance

Frank
Technical Details
Message-ID: <c82q15$26r$01$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,6be71f04342e6d5d,start
X-Google-Attributes: gidf94dd,public
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail
From: "Frank Wunderlich" <frankwu@gmx.de>
Newsgroups: borland.public.delphi.nativeapi
Subject: temporary disable Powermanagement of Monitor
Date: Fri, 14 May 2004 17:53:10 +0200
Organization: T-Online
Lines: 14
Message-ID: <c82q15$26r$01$1@news.t-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1084549989 01 2267 FZM2GpeOl8lCELa 040514 15:53:09
X-Complaints-To: usenet-abuse@t-online.de
X-ID: Ee-47eZX8eACSHkhJoVZJ3J2LrGDMpiipr4UbtRytmClQ86y9CelsV
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106