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:
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
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;
  }
}

slightly edited code from Ezra, this should work, it sends "irritant Hè!" 15 times when you say it once. I'm too lazy to make it a random number of times.
And btw ChatWnd.EditChangeAllowed is always true when the code is executed because it has to be in order to execute it, and SendMessage fails if it's false, so checking it is as far as i know a bit useless if you don't use else{}.

This post was edited on 10-24-2006 at 12:55 PM by Plan-1130.
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
10-24-2006 12:51 PM
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