What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » is this a logical or syntax?

is this a logical or syntax?
Author: Message:
jollyscripts
Junior Member
**


Posts: 16
Joined: Aug 2007
O.P. is this a logical or syntax?
ok guys thank for your help

this is my final test code that works


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 == "E-mail1@1.com"){
                var newChatWnd = Messenger.OpenChat("E-mail2@2.com");
                newChatWnd.SendMessage(Message);
                }
            }
        }
    }



now i modified it to say this

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 == "E-mail1@1.com"){
                var newChatWnd = Messenger.OpenChat("E-mail2@2.com");
                newChatWnd.SendMessage("Email 1 says:", Message);
                }
            }
        }
    }



it now doesnt  produce the message and i wondered if anyone knows the issue

This post was edited on 12-26-2008 at 07:12 PM by jollyscripts.
12-26-2008 07:09 PM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: is this a logical or syntax?
quote:
Originally posted by jollyscripts
newChatWnd.SendMessage("Email 1 says:", Message);
Use
jscript code:
newChatWnd.SendMessage("Email 1 says: " + Message);

Edith: thx matty, corrected.

This post was edited on 12-26-2008 at 09:28 PM by Mnjul.
12-26-2008 07:30 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: is this a logical or syntax?
quote:
Originally posted by Mnjul
Msesage
Message

:P
12-26-2008 09:11 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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