What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Relay messages.

[Request] Relay messages.
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Request] Relay messages.
code:
var tmpString="tmp";
var sAccount = Messenger.MyContacts.GetContact("YOUR 2ND ACCOUNT'S EMAIL HERE")

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message){
ChatWnd.SendMessage("Messages are being forwarded to: "+sAccount.Email;
    if(Origin!=Messenger.MyName&&Origin!=sAccount.Name&&tmpString!=""){
            tmpString = MsgPlus.RemoveFormatCodes(Origin)+" says: "+ Message
            sAccountChatWnd = Messenger.OpenChat(sAccount.Email);
            sAccountChatWnd.SendMessage(tmpString);
        }
    tmpString = "";
}

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
ChatWnd.SendMessage("Messages are being forwarded to: "+sAccount.Email;   
if(tmpString!=""){
        tmpString = MsgPlus.RemoveFormatCodes(Messenger.MyName)+" says: "+ Message
        sAccountChatWnd = Messenger.OpenChat(sAccount.Email);
        sAccountChatWnd.SendMessage(tmpString);
        tmpString = "";
        }
}



I had some time spare so thought I'd do you a favour...

So far it's not tested, but should work :p

EDIT: To work, you will need to add your 2nd account to your contact list on your first account

This post was edited on 09-11-2006 at 11:47 AM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-11-2006 11:46 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Relay messages. - by sno on 09-10-2006 at 12:44 PM
RE: [Request] Relay messages. - by xxhannahxx on 09-10-2006 at 12:51 PM
RE: [Request] Relay messages. - by markee on 09-10-2006 at 12:52 PM
RE: [Request] Relay messages. - by sno on 09-10-2006 at 01:35 PM
RE: [Request] Relay messages. - by cloudhunter on 09-10-2006 at 11:10 PM
RE: [Request] Relay messages. - by sno on 09-11-2006 at 07:41 AM
RE: [Request] Relay messages. - by markee on 09-11-2006 at 08:03 AM
RE: [Request] Relay messages. - by Spunky on 09-11-2006 at 08:03 AM
RE: RE: [Request] Relay messages. - by sno on 09-11-2006 at 09:05 AM
RE: [Request] Relay messages. - by Spunky on 09-11-2006 at 11:46 AM
RE: [Request] Relay messages. - by sno on 09-11-2006 at 12:42 PM
RE: [Request] Relay messages. - by Spunky on 09-11-2006 at 12:45 PM
RE: [Request] Relay messages. - by sno on 09-13-2006 at 12:06 PM
RE: [Request] Relay messages. - by Spunky on 09-15-2006 at 03:14 PM
RE: [Request] Relay messages. - by sno on 09-15-2006 at 03:49 PM
RE: [Request] Relay messages. - by R4000 on 09-15-2006 at 03:52 PM
RE: [Request] Relay messages. - by sno on 09-15-2006 at 04:21 PM
RE: [Request] Relay messages. - by jollyscripts on 09-12-2007 at 07:51 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