I'll try, shouldn't be too hard.
Might take some time, as I have a deadline for next week at work.
EDIT: Found out the script was a lot easier than I thought, so I have a working function already
I'll explain what it does.
First It checks if it was you that sent the message, if not continue, then it look s at the message to see if the message contains Hey, if it does continue (notice: you can change this to any message you like).
Then it send Hi, back to the same conversation where you just received the message, now it starts looping trough all the open conversations and because one conversation should be skipped (the one where we just answered Hi) it checks the Handle of the window, if the handle is not the same it sends "Sorry, i'm busy right now".
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
if (Origin != Messenger.MyName)
{
if (Message.match(/(^|\s+)Hey!?($|\s+)/i) != null)
{
ChatWnd.SendMessage("Hi");
var e = new Enumerator(Messenger.CurrentChats);
for(; !e.atEnd(); e.moveNext())
{
var ChatWindow = e.item();
if (ChatWindow.Handle != ChatWnd.Handle)
{
ChatWindow.SendMessage("Sorry, i'm currently Busy");
}
}
}
}
}
Another thing, please don't double post, there is an edit button.