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:
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: bring computer off screensaver when msg is received
Hey ezkim0x!
I dont know if there is such script but you can make your own script with the following lines of code :)
code:
var SPI_SETSCREENSAVEACTIVE    = 0x11;
var SPIF_SENDWININICHANGE    = 2;
var SPIF_UPDATEINIFILE        = 1;
var SPIF_SENDCHANGE        = 2;

function OnEvent_Initialize(MessengerStart){
Interop.Call("user32", "SystemParametersInfoW", SPI_SETSCREENSAVEACTIVE, true, 0, SPIF_SENDWININICHANGE|SPIF_UPDATEINIFILE);
}

function OnEvent_Uninitialize(MessengerExit){
    Interop.Call("user32", "SystemParametersInfoW", SPI_SETSCREENSAVEACTIVE, true, 0, SPIF_SENDWININICHANGE|SPIF_UPDATEINIFILE)
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind){
    Interop.Call("user32", "SystemParametersInfoW", SPI_SETSCREENSAVEACTIVE, false, 0, SPIF_SENDWININICHANGE|SPIF_UPDATEINIFILE)
}

* special thanks to Adan for testing this   lol =P
06-05-2008 12:15 AM
Profile E-Mail 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