BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stop screensaver when running

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Steve
Guest





PostPosted: Sat Oct 01, 2005 8:37 pm    Post subject: Stop screensaver when running Reply with quote



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


Back to top
Michel Leunen
Guest





PostPosted: Sun Oct 02, 2005 8:42 am    Post subject: Re: Stop screensaver when running Reply with quote



Steve wrote:

Quote:
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/
----------------------------------------

Back to top
Steve
Guest





PostPosted: Sun Oct 02, 2005 10:35 am    Post subject: Re: Stop screensaver when running Reply with quote




"Michel Leunen" <nospam (AT) noreply (DOT) please> ha scritto nel messaggio
news:433f9cc6$1 (AT) newsgroups (DOT) borland.com...
Quote:
Steve wrote:

[ ... ]

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

Michel


Thanks Michel, is just what I looking for.
Have a nice day.
Steve



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.