Article View: borland.public.cppbuilder.nativeapi
Article #5088Stop screensaver when running
From: Steve
Date: Sat, 01 Oct 2005 20:37
Date: Sat, 01 Oct 2005 20:37
23 lines
1678 bytes
1678 bytes
Hi all! 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. What's the difference about is Windows to start it ? Have someone a piece of code that work in any situation ? Application must run on WindowsXP like on Windows NT. Any help is appreciated. Steve
Technical Details
Message-ID:
<433ef328@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,219a3d6365107501,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Steve" <sdardari_NOSPAM_@rimini.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Stop screensaver when running Date: Sat, 1 Oct 2005 22:37:37 +0200 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 82.55.199.40 Message-ID: <433ef328@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1128198952 82.55.199.40 (1 Oct 2005 13:35:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail