🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5090

Re: Stop screensaver when running

#5090
From: Michel Leunen
Date: Sun, 02 Oct 2005 08:42
27 lines
1982 bytes
Steve wrote:

> I know that this question was posted other times, but after many and many 
> searches and after have tryed every kind of code, I've decide to ask here.
> 
> Within my application I need to stop the screensaver if is running, I've 
> found some sample but it work only if I start manually a screensaver, if is 
> started by system it doesn't work.
> 
> For example this simple code :
> 
> mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0);
> mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
> 
> work .. but only if Screensaver is started manually.

Look here :
http://support.microsoft.com/kb/140723/EN-US/

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <433f9cc6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-quince!easynet.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <433ef328@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,219a3d6365107501
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 02 Oct 2005 10:42:33 +0200
From: Michel Leunen <nospam@noreply.please>
Organization: www.leunen.com
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: fr-be, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Stop screensaver when running
References: <433ef328@newsgroups.borland.com>
In-Reply-To: <433ef328@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.242.164.219
Message-ID: <433f9cc6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1128242374 81.242.164.219 (2 Oct 2005 01:39:34 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-quince!easynet.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail