right, i have the final "product", no clue how to bundle it and all, and to be quite frank, it's worthless since it requires other steps for installation.. first of all download snarl CMD and put the .exe in your windows folder (or anywhere else for that matter)
http://tlhan-ghun.de/?q=node/59
then download the icon attached and put it somewhere,
then copy and paste the following into a new script and edit the top 4 variables.
Javascript code:
/**
* Just edit the variables.
*/
var boolDontNotifyOnBusy = true; // disable on Busy? true for yes, false for no
var boolNotifyOnSignOut = true; // notify when a contact signs out? true for yes, false for no
var sSnarlCMD = "C:\\Windows\\Snarl_CMD.exe"; // The location to snarl CMD, make sure you escape backslashes (type \\ instead of \)
var sMSNIcon = "C:\\Windows\\icon.png"; // [optional] The location to MSN icon.
// don't edit anything below this line unless you know what you're doing
var oChatWnds = {};
var boolMessengerLocked = false;
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 {
if (!(Messenger.MyStatus == 4 && boolDontNotifyOnBusy == true)) {
var re = new RegExp("\([0-9][0-9]:[0-9][0-9]\)", 'ig');
if(re.exec(sOrigin.substring(0, 7))) {
sOrigin = sOrigin.substring(7);
}
snarl_notify(sOrigin+"\n"+sMessage);
}
}
}
function OnEvent_ContactSignin(sEmail) {
snarl_notify(getContactByEmail(sEmail).Name+"\nhas just signed in");
}
function OnEvent_ContactSignout(sEmail) {
if(boolNotifyOnSignOut == true) {
snarl_notify(getContactByEmail(sEmail).Name+"\nsigned out");
}
}
function OnEvent_ChatWndDestroyed(pChatWnd) {
delete oChatWnds[pChatWnd.Handle];
}
function snarl_notify(sMessage) {
if(boolMessengerLocked == false && sSnarlCMD != '') {
sSnarlIcon = '';
if(sMSNIcon != '') {
sSnarlIcon = ' "'+sMSNIcon+'"';
}
new ActiveXObject('WScript.Shell').Exec(sSnarlCMD+' snShowMessage 5 "Windows Live Messenger" "'+MsgPlus.RemoveFormatCodes(sMessage)+'"'+sSnarlIcon);
}
}
function getContactByEmail(sEmail) {
var Contacts = Messenger.MyContacts;
return Contacts.GetContact(sEmail);
}
function OnEvent_MessengerUnlocked() {
boolMessengerLocked = false;
}
function OnEvent_MessengerLocked() {
boolMessengerLocked = true;
}
and matty, thanks for the help..