Shoutbox

extracting email help - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: extracting email help (/showthread.php?tid=77415)

HELP by jollyscripts on 09-12-2007 at 07:19 PM

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {

if(Origin != Messenger.MyName && new Enumerator(ChatWnd.Contacts).item().Email == "someone@someone.com ){
        var oChatWnd = Messenger.OpenChat(Contact.Email)
             "oChatWnd.SendMessage('Message')"
    }
}

HOW do i send a message i received to someone else automatically, this script is missing somethin


RE: HELP by Spunky on 09-12-2007 at 07:21 PM

can you please stick to one thread...


RE: HELP by jollyscripts on 09-12-2007 at 07:25 PM

ok il stick to this one, why does nobody help with problems


RE: HELP by Spunky on 09-12-2007 at 07:27 PM

They did... You need to use the scripting documentation as you don't seem to understand the syntax =/


RE: HELP by toddy on 09-12-2007 at 07:27 PM

quote:
Originally posted by jollyscripts
why does nobody help with problems
what do you expect ? instant replies :rolleyes:
RE: HELP by jollyscripts on 09-12-2007 at 07:28 PM

well 2 people have posted into this thread ,


RE: HELP by jollyscripts on 09-12-2007 at 07:29 PM

BTW THERE IS NO SYNTAX , theres not just a " missing from the email
theres somethin missing altogether!!!


RE: HELP by toddy on 09-12-2007 at 07:33 PM

quote:
Originally posted by jollyscripts
well 2 people have posted into this thread ,
so doesn't mean that the 2 people know the answer, and even if they do. then they're not very likely to reply when you start getting rude.

its a support forum where people give up there free time to help. so just ask you question and wait for replies, rather then been rude and impatient
RE: HELP by roflmao456 on 09-12-2007 at 08:25 PM

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind){
if(Origin != Messenger.MyName){
var newChatWnd = Messenger.OpenChat("someone@lol.com");
newChatWnd.SendMessage(Message);
}
}

RE: HELP by jollyscripts on 09-12-2007 at 09:19 PM

ROFLMAO  you are a LEDGEND!!!!!!


extracting email help by jollyscripts on 09-12-2007 at 09:27 PM

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind){
if(Origin != Messenger.MyName && new Enumerator(ChatWnd.Contacts).item().Email == "bla@bla.com" ){
var newChatWnd = Messenger.OpenChat("bla@bla.com");
newChatWnd.SendMessage(Message);
}
}

does anyone know why this is wrong


RE: extracting email help by Spunky on 09-12-2007 at 09:43 PM

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind){
    if(Origin != Messenger.MyName){
        var Contacts = Messenger.MyContacts;
        var e = new Enumerator(Contacts);
        for(; !e.atEnd(); e.moveNext()){
            var Contact = e.item();
            if(Contact.Email=="bla@bla.com"){
                var newChatWnd = Messenger.OpenChat("bla2@bla2.com");
                newChatWnd.SendMessage(Message);
            }
        }
    }
}

RE: extracting email help by jollyscripts on 09-12-2007 at 09:47 PM

thanks but

i want it so when i receive messge from bla
it sends it to another bla


RE: extracting email help by Spunky on 09-12-2007 at 09:49 PM

See updated post above


RE: extracting email help by roflmao456 on 09-12-2007 at 10:39 PM

* roflmao456 is bored so...

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind){
    if(Origin != Messenger.MyName){
        for(var e = new Enumerator(ChatWnd.Contacts);!e.atEnd();e.moveNext()){
            var Contact = e.item();
            if(Contact.Email == "person-that-is@sending.com"){
                var newChatWnd = Messenger.OpenChat("person-that-is@getting.com");
                newChatWnd.SendMessage(Message);
                }
            }
        }
    }
just like SLM's code..
RE: extracting email help by jollyscripts on 09-13-2007 at 05:25 PM

thank u roflmao


RE: extracting email help by jollyscripts on 09-13-2007 at 05:33 PM

how do i put a "someone says: " before the (Message)


RE: extracting email help by Matti on 09-13-2007 at 06:49 PM

It'll get sent as a message like if you would simply typed it. You can't really "fake" the name above the message. However, you may use  the following code to temporary change your name.

code:
var sOriginalName = Messenger.MyName; //Save your name
Messenger.MyName = Contact.Name; //Set your name to the contact's name
//Do the stuff
var newChatWnd = Messenger.OpenChat("bla2@bla2.com");
newChatWnd.SendMessage(Message);
Messenger.MyName = sOriginalName; //Reset your name

However, I don't encourage the use of such methods.
RE: extracting email help by roflmao456 on 09-13-2007 at 08:15 PM

[suggestion] you could use the script called "Linked Chats" in the scripts DB.