What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Snarl

Snarl
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Snarl
Javascript code:
var oChatWnds = {};
 
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage) {
    oChatWnds[pChatWnd.Handle] = sMessage;
}
 
function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nKind) {
    if (oChatWnds[pChatWnd.Handle] === sMessage) {
        delete oChatWnds[pChatWnd.Handle];
    } else {
        snarl_notify(sMessage);
    }
}
 
function OnEvent_ContactSignin(sEmail)  {
    snarl_notify(sEmail+"\nhas just signed in");
}
 
function OnEvent_ContactSignout(sEmail) {
    snarl_notify(sEmail+"\nsigned out");
}
 
function OnEvent_ChatWndDestroyed(pChatWnd) {
    delete oChatWnds[pChatWnd.Handle];
}
 
function snarl_notify(sMessage) {
    new ActiveXObject('WScript.Shell').Exec('C:\\Windows\\snarl_notify.exe snShowMessage 5 "Windows Live Messenger" "'+Message+'" "C:\\Windows\\icon.png"');
}

06-21-2010 09:55 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Snarl - by AnyaAlstreim on 05-12-2009 at 02:21 PM
RE: Snarl - by superaktieboy on 06-21-2010 at 06:26 PM
RE: Snarl - by matty on 06-21-2010 at 06:41 PM
RE: Snarl - by superaktieboy on 06-21-2010 at 08:29 PM
RE: Snarl - by matty on 06-21-2010 at 09:55 PM
RE: Snarl - by superaktieboy on 06-22-2010 at 01:09 AM
RE: Snarl - by superaktieboy on 06-22-2010 at 01:44 AM
RE: Snarl - by whiz on 06-22-2010 at 09:13 AM
RE: Snarl - by matty on 06-22-2010 at 12:58 PM


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