What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » bring computer off screensaver when msg is received

bring computer off screensaver when msg is received
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: bring computer off screensaver when msg is received
That code will not work properly as-is.

By setting SETSCREENSAVEACTIVE to false you effectivly turn off the screensaver. It will not turn back on unless you actually moved your mouse or pressed a key. So, if no more messages are recieved your screensaver will not kick in anymore either.

Also, you would be interfearing with the Windows settings of the user, which you do not want to do; you don't need to write the settings to the current user profile to make the new (temporary settings) active.

And you assume that the screensaver is enabled in that code, which will not always be the case either.

So instead, you need to read in the current setting first, then deactivate, then set it back to what it was (so you do not need the (un)initialize functions).

For more information see KB140723 and MSDN library.

;)

------------------------------------

quote:
Originally posted by felipEx
I dont know if there is such script [...]
Not a script, but already requested and answered some time ago:
Help disabling Windows Screensaver

This post was edited on 06-05-2008 at 01:34 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-05-2008 12:43 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
bring computer off screensaver when msg is received - by ezkim0x on 05-05-2008 at 08:10 AM
RE: bring computer off screensaver when msg is received - by ezkim0x on 06-04-2008 at 01:57 AM
RE: bring computer off screensaver when msg is received - by felipEx on 06-05-2008 at 12:15 AM
RE: bring computer off screensaver when msg is received - by CookieRevised on 06-05-2008 at 12:43 AM
RE: bring computer off screensaver when msg is received - by ezkim0x on 06-05-2008 at 01:20 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On