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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
is this a logical or syntax? - by jollyscripts on 12-26-2008 at 07:09 PM
RE: is this a logical or syntax? - by Mnjul on 12-26-2008 at 07:30 PM
RE: is this a logical or syntax? - by matty on 12-26-2008 at 09:11 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