What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Script to make sent messages gradient

[Request] Script to make sent messages gradient
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Request] Script to make sent messages gradient
code:
var MsgOutput = null;
var Color1 = null;
var Color2 = null;

function Replace_Text(Color1, Color2, Message, MsgOutput)
{
  MsgOutput = "[c=" + Color1 + "]" + Message + "[/c=" + Color2 + "]";
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
  var Contacts = ChatWnd.Contacts; 
  var e = new Enumerator(Contacts);
 
  for(; !e.atEnd(); e.moveNext())
  {
    var Contact = e.item();
    if (Contact.Email == xxx@yyy.zzz)
    {
      Color1 = "#010176";
      Color2 = "#2D0352";
      Replace_Text(Color1, Color2, Message, MsgOutput);
     
      return MsgOutput;
    }
  } 
  return Message;
}

This might work, can't test, network is acting up.

This will iterate trough a list of contacts in the current ChanWnd, and if it finds the contact it will send the gradiented message, else it will send the message unaltered.

This post was edited on 06-26-2006 at 09:06 AM by Ezra.
[Image: 1-0.png]
             
06-26-2006 09:04 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Script to make sent messages gradient - by t_pass6 on 06-25-2006 at 01:24 PM
RE: Script to make sent messages gradient - by vaccination on 06-25-2006 at 01:49 PM
RE: Script to make sent messages gradient - by Val on 06-25-2006 at 01:56 PM
RE: Script to make sent messages gradient - by t_pass6 on 06-25-2006 at 03:04 PM
RE: Script to make sent messages gradient - by mathieumg on 06-25-2006 at 03:07 PM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-25-2006 at 03:19 PM
RE: [Request] Script to make sent messages gradient - by mathieumg on 06-25-2006 at 03:21 PM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-25-2006 at 03:23 PM
RE: [Request] Script to make sent messages gradient - by mathieumg on 06-25-2006 at 03:24 PM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-26-2006 at 08:50 AM
RE: [Request] Script to make sent messages gradient - by Ezra on 06-26-2006 at 09:04 AM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-26-2006 at 09:15 AM
RE: [Request] Script to make sent messages gradient - by Ezra on 06-26-2006 at 09:19 AM
RE: [Request] Script to make sent messages gradient - by timbothegreat on 06-26-2006 at 09:31 AM
RE: [Request] Script to make sent messages gradient - by ThunderStorm on 06-26-2006 at 09:40 AM
RE: [Request] Script to make sent messages gradient - by Ezra on 06-26-2006 at 09:45 AM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-26-2006 at 09:56 AM
RE: [Request] Script to make sent messages gradient - by crank on 06-26-2006 at 10:28 AM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-26-2006 at 10:41 AM
RE: [Request] Script to make sent messages gradient - by timbothegreat on 06-26-2006 at 11:00 AM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-26-2006 at 11:28 AM
RE: [Request] Script to make sent messages gradient - by Ezra on 06-26-2006 at 11:33 AM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-26-2006 at 11:42 AM
RE: [Request] Script to make sent messages gradient - by Ezra on 06-26-2006 at 11:46 AM
RE: [Request] Script to make sent messages gradient - by demajen on 06-26-2006 at 06:18 PM
RE: RE: [Request] Script to make sent messages gradient - by Dally on 06-26-2006 at 06:47 PM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-27-2006 at 01:34 PM
RE: RE: [Request] Script to make sent messages gradient - by Dally on 06-27-2006 at 07:14 PM
RE: [Request] Script to make sent messages gradient - by pags2k7 on 06-27-2006 at 04:28 PM
RE: [Request] Script to make sent messages gradient - by mathieumg on 06-27-2006 at 04:30 PM
RE: [Request] Script to make sent messages gradient - by hmaster on 06-27-2006 at 05:02 PM
RE: [Request] Script to make sent messages gradient - by Eljay on 06-27-2006 at 05:13 PM
RE: [Request] Script to make sent messages gradient - by t_pass6 on 06-27-2006 at 09:02 PM
RE: [Request] Script to make sent messages gradient - by Dally on 06-28-2006 at 11:58 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