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

Graident message
Author: Message:
Silva
New Member
*


Posts: 4
Joined: Jul 2006
O.P. RE: Graident message
Actualy all emo's don't work alone because they get split up, for example :P gets split up to : and P. If I knew how to script beter I'd do that if it starts with a " : " the script woulden't effect the first two characters. But now I'm still busy playing with it so that it only runs on the emails I choose so that people in my list that don't have plus won't  mad at me for using colors :P.

Edit: I played around with Ezera's email verification code found here : " http://shoutbox.menthix.net/showthread.php?tid=61888 "

And got this at the end:

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
  var Contacts = ChatWnd.Contacts;
  var e = new Enumerator(Contacts);
  if (Contacts.Count == 1)
  {
    for (;!e.atEnd();e.moveNext())
    {
      var Contact = e.item();
      switch (Contact.Email)
      {
        case "email1@hotmail.com":
          run(ChatWnd, Message);
          break;
        case "email2@hotmail.com":
          run(ChatWnd, Message);
          break;
      }
    }
  }
}

function run(ChatWnd, Message)
{
 
  if (Message.substr(0,1) == "/")
  {
    return Message;
  }
  else
  {
    return "[c=4]" + Message.substr(0,(Message.length/2)) + "[/c=1][c=1]" + Message.substr((Message.length/2)) + "[/c=4]";
  {

}

If someone could please help me debug it, I just cant understand why it's not working :S .

This post was edited on 07-03-2006 at 04:26 PM by Silva.
07-03-2006 04:20 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Graident message - by Silva on 07-03-2006 at 12:20 PM
RE: Graident message - by Ezra on 07-03-2006 at 12:42 PM
RE: Graident message - by Silva on 07-03-2006 at 12:45 PM
RE: Graident message - by craig2k5 on 07-03-2006 at 01:19 PM
RE: Graident message - by Ezra on 07-03-2006 at 01:40 PM
RE: Graident message - by craig2k5 on 07-03-2006 at 01:57 PM
RE: Graident message - by Ezra on 07-03-2006 at 02:01 PM
RE: Graident message - by Silva on 07-03-2006 at 03:33 PM
RE: Graident message - by Voldemort on 07-03-2006 at 04:10 PM
RE: Graident message - by Silva on 07-03-2006 at 04:20 PM
RE: Graident message - by The Brain on 07-03-2006 at 11:37 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