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

correction please
Author: Message:
DennisMartijn
Full Member
***


Posts: 119
Joined: Jul 2006
O.P. RE: correction please
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
  if (Message == "irritant Hè!")
  {
     for (var i = 0; i< 14; i++)
     {
       ChatWnd.SendMessage("irritant Hè!");
       return "irritant Hè!";
     }
  }
  else
  {
    return Message;
  }
}


what will happen if you leave out "for (var etc", like this:

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
  if (Message == "irritant Hè!")
  {
            ChatWnd.SendMessage("irritant Hè!");
       return "irritant Hè!";
     
  }
  else
  {
    return Message;
  }
}


then its sending the message one time right?

code:
if (Message == "irritant Hè!")
  {
            ChatWnd.SendMessage("irritant Hè!");
       return "irritant Hè!";
     ChatWnd.SendMessage("irritant Hè!");
       return "irritant Hè!";

  }


does this works too? does it sends 2 messages now (dont have someone to test on:P) ?
10-25-2006 07:40 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
correction please - by DennisMartijn on 10-06-2006 at 05:52 PM
RE: correction please - by Felu on 10-06-2006 at 06:08 PM
RE: correction please - by Ezra on 10-06-2006 at 06:15 PM
RE: correction please - by matty on 10-06-2006 at 06:17 PM
RE: correction please - by DennisMartijn on 10-24-2006 at 12:25 PM
RE: correction please - by Plan-1130 on 10-24-2006 at 12:51 PM
RE: correction please - by markee on 10-24-2006 at 03:41 PM
RE: correction please - by phalanxii on 10-25-2006 at 07:01 AM
RE: correction please - by DennisMartijn on 10-25-2006 at 07:40 AM
RE: correction please - by phalanxii on 10-25-2006 at 08:01 AM
RE: correction please - by DennisMartijn on 10-25-2006 at 08:05 AM
RE: correction please - by phalanxii on 10-25-2006 at 08:10 AM
RE: correction please - by DennisMartijn on 10-25-2006 at 08:11 AM
RE: correction please - by markee on 10-25-2006 at 08:27 AM


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