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

Snarl
Author: Message:
superaktieboy
New Member
*


Posts: 4
Joined: Jun 2010
RE: Snarl
aah cheers.. i've had a go with it.. however, when it comes to "OnEvent_ChatWndReceiveMessage", it seems to send all messages through, i read the scripting documentation, where it says that they are using the "Origin" argument to check whether this is the current user or not.
This is what i have so far, however it is failing miserably.. (the sign in and sign out works fine)

Javascript code:
var signedInUser;
function snarl_notify(Message) {
    new ActiveXObject('WScript.Shell').Exec('C:\\Windows\\snarl_notify.exe snShowMessage 5 "Windows Live Messenger" "'+Message+'" "C:\\Windows\\icon.png"');
}
function OnEvent_ContactSignin(sEmail)  {
    snarl_notify(sEmail+"\nhas just signed in");
}
 
function OnEvent_ContactSignout(sEmail) {
    snarl_notify(sEmail+"\nsigned out");
}
 
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    if(signedInUser.Name != Origin) {
        snarl_notify(ChatWnd+'**'Origin++"**"+Message);
    }
    return Message;
}
 
function shorten(sText, max) {
    sNewText = sText.split('', max);
    return sNewText.join('');
}
 
function OnEvent_Signin(sEmail) {
    signedInUser = GetContact(sEmail);
}


so my question, how do i make it so that only the messages from the other end come up? and if possible, only when the window hasn't been created yet (like msn's original behaviour..)

also, how do i make sure msn's original notifiers don't come up?
06-21-2010 08:29 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