What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Strange Error

Strange Error
Author: Message:
A06
New Member
*


Posts: 2
Joined: Jun 2006
O.P. Strange Error
Hi !
i've a problem with my script...
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
   if (Message.match(/^!massmsg$/))
   {
      MsgPlus.DisplayToast("Mass Message :: Usage","!massmsg <message>");
      return "";
   }
   else if (Message.match(/^!massmsg .+/))
   {
      var strMessage = Message.substr(9);
     Debug.trace(strMessage);
      var Contacts = Messenger.MyContacts;
      var e = new Enumerator(Contacts);
      var Contact = e.item();
      for(; !e.atEnd(); e.moveNext())
      {
         var Contact = e.item();
         if (Contact.Status != 1)
         {
            var ChatWnd2 = Messenger.OpenChat(Contact.Email);
           Debug.trace(strMessage);
            ChatWnd2.SendMessage(strMessage);
         }
      }
       return "";
   }
}

The Error : Erreur : 'null' a la valeur Null ou n'est pas un objet..

~= 'null' egal Null or is not an object.

The line where is signaled the error : ChatWnd2.SendMessage(strMessage);

The both Debug.trace(strMessage) are Ok
02-22-2007 09:56 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Strange Error - by A06 on 02-22-2007 at 09:56 PM
RE: Strange Error - by RaceProUK on 02-22-2007 at 10:46 PM
RE: Strange Error - by TheGuruSupremacy on 02-22-2007 at 11:16 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