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?