 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Steve Guest
|
Posted: Sat Oct 01, 2005 8:37 pm Post subject: Stop screensaver when running |
|
|
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
|
Posted: Sun Oct 02, 2005 8:42 am Post subject: Re: Stop screensaver when running |
|
|
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
|
Posted: Sun Oct 02, 2005 10:35 am Post subject: Re: Stop screensaver when running |
|
|
"Michel Leunen" <nospam (AT) noreply (DOT) please> ha scritto nel messaggio
news:433f9cc6$1 (AT) newsgroups (DOT) borland.com...
[ ... ]
Thanks Michel, is just what I looking for.
Have a nice day.
Steve
|
|
| Back to top |
|
 |
|
|
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
|
|