| [Request] Script to make sent messages gradient | 
| Author: | Message: | 
| t_pass6 New Member
 
  
 
 Posts: 12
 Joined: Jun 2006
 
 | | O.P.  [Request] Script to make sent messages gradient Hello everybody,
 I'd like to make a script that would make every message i send gradient, and i need some help.
 Anyone has ideas?
 This post was edited on 06-25-2006 at 03:05 PM by t_pass6.
 | 
 | 
| 06-25-2006 01:24 PM |  | 
|  | 
| vaccination Veteran Member
 
      
 
  
 Posts: 2511
 Reputation: 43
 33 /
  / – Joined: Apr 2005
 
 | | RE: Script to make sent messages gradient In the conversation window click the Format panel icon then click the lil "T" in the top right coner of the format panel and select gradient, then select two colours you like and type your text and it will be sent in a gradient!
 Hope this helps!
 | 
 | 
| 06-25-2006 01:49 PM |  | 
|  | 
| Val Senior Member
 
     
 
  
 Posts: 698
 Reputation: 45
 32 /
  /  Joined: Jun 2004
 
 | | RE: Script to make sent messages gradient quote:Originally posted by vaccination
 
 In the conversation window click the Format panel icon then click the lil "T" in the top right coner of the format panel and select gradient, then select two colours you like and type your text and it will be sent in a gradient!
 
 Hope this helps!
 
 Vaccination, I think he knows how to do this but wants to have script that does this for every message he sends. Please read posts carefully next time.Menthix:Anonymous doesn\'t have a leader.
 Anonymous is the leader of ShawnZ.
 
 Max:
 True. But deep down, we all know.
 ShawnZ is incharge.
 he is /b/ in human form.
 | 
 | 
| 06-25-2006 01:56 PM |  | 
|  | 
| t_pass6 New Member
 
  
 
 Posts: 12
 Joined: Jun 2006
 
 | | O.P.  RE: Script to make sent messages gradient That's exactly what i meant ValSpy. I know i have to make a script with OnEvent_ChatWndSendMessage, but i don't what to do next. Can someone help me? | 
 | 
| 06-25-2006 03:04 PM |  | 
|  | 
| mathieumg Full Member
 
    
 
 Posts: 181
 Reputation: 2
 36 /
  /  Joined: May 2004
 
 | | RE: Script to make sent messages gradient You got to surround the sent message (Message variable) with the approriate gradient color tags ([c=#color1]Message[/c=#color2]) and return this value (so it is sent instead of the initial Message) Official MessengerPlus! Live French Translator 
Official StuffPlug 3 French Translator
  | 
 | 
| 06-25-2006 03:07 PM |  | 
|  | 
| t_pass6 New Member
 
  
 
 Posts: 12
 Joined: Jun 2006
 
 | | O.P.  RE: [Request] Script to make sent messages gradient Then i must doFunction OnEvent_ChatWndSendMessage(ChatWnd, ChatMsg)
 {
 ChatMsg = "[c=58]" + ChatMSg + "[/c=47]";
 ChatWnd.SenMessage (ChatMsg);
 }
 
 Is This correct?
 | 
 | 
| 06-25-2006 03:19 PM |  | 
|  | 
| mathieumg Full Member
 
    
 
 Posts: 181
 Reputation: 2
 36 /
  /  Joined: May 2004
 
 | | RE: [Request] Script to make sent messages gradient code:function OnEvent_ChatWndSendMessage(ChatWnd, Message)
 {
 var MsgOutput = null;
 MsgOutput= "[c=58]" + Message + "[/c=47]";
 
 return MsgOutput;
 }
 
 
 
Try that
 
Edit: Just tested it and it works 100%  This post was edited on 06-25-2006 at 03:22 PM by mathieumg.
 Official MessengerPlus! Live French Translator 
Official StuffPlug 3 French Translator
  | 
 | 
| 06-25-2006 03:21 PM |  | 
|  | 
| t_pass6 New Member
 
  
 
 Posts: 12
 Joined: Jun 2006
 
 | | O.P.  RE: [Request] Script to make sent messages gradient Thanks a lot! | 
 | 
| 06-25-2006 03:23 PM |  | 
|  | 
| mathieumg Full Member
 
    
 
 Posts: 181
 Reputation: 2
 36 /
  /  Joined: May 2004
 
 | | RE: [Request] Script to make sent messages gradient No problem    You're welcomeOfficial MessengerPlus! Live French Translator 
Official StuffPlug 3 French Translator
  | 
 | 
| 06-25-2006 03:24 PM |  | 
|  | 
| t_pass6 New Member
 
  
 
 Posts: 12
 Joined: Jun 2006
 
 | | O.P.  RE: [Request] Script to make sent messages gradient Another question : I want to have different effects based on the contact i send messages to. I made a function to replace the message to avoid being redundant
 here's the code i use :
 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)
 {
 if (Contact.Email == xxxxx@xxxxxxx) {
 Color1 = "#010176";
 Color2 = "#2D0352";
 Replace_Text(Color1, Color2, Message, MsgOutput);
 }
 return MsgOutput;
 }
 
 But i can't start the script, i get an error. Has anybody ideas why?
 This post was edited on 06-26-2006 at 08:52 AM by t_pass6.
 | 
 | 
| 06-26-2006 08:50 AM |  | 
|  | 
| Pages: (4): 
« First
  
 [ 1 ]
 2
 3
 4
 
»
 
Last » | 
|  |