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

quoting
Author: Message:
strangel3t
New Member
*


Posts: 3
Joined: Nov 2009
O.P. quoting
Sup,

I'm trying to find a script to make the color of my text change if it begins with '>>'

Is there already such thing ? Something similar? I could sript it easily but I don't know where to start.
11-23-2009 01:54 AM
Profile E-Mail PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: quoting
here you go:

code:
// this can have multiple values... note: these are all red colour
//   var color = 4;
//   var color = "red";
//   var color = "#ff0000";
var color = "4";

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.substr(0,2) === ">>") return "[c="+color+"]"+Message+"[/c]";
}

just make a new script with that in it and it will change the color, and if you want to make it a different color, read the notes at the top [=

This post was edited on 11-23-2009 at 03:11 AM by NanaFreak.
11-23-2009 03:10 AM
Profile PM Find Quote Report
strangel3t
New Member
*


Posts: 3
Joined: Nov 2009
O.P. RE: quoting
Thanks dude,

this is the code i'm using:


var color = "#889967";

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.substr(0,2) === ">>") return "[c="+color+"]"+Message+"[/c]";
}


A friend of mine reported that he was receiveing text like this: [c=#889967]>>mymessage/c]

Does this only works with people using plus? Isn't there another way of changing color, send message, restore color?
11-23-2009 01:10 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: quoting
Yes this only works if the user is using Messenger Plus! Live.
11-23-2009 02:27 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: quoting
quote:
Originally posted by strangel3t
Isn't there another way of changing color, send message, restore color?
Yes. It involves tampering with the registry and Messenger's own font settings. As a result, your contact does not need any addon to see the color.

The script must do:
  1. Read the REG_BINARY registry value
    HKCU\Software\Microsoft\MSNMessenger\PerPassportSettings\<your_windows live_id_hash>\IM Color
  2. Set a new value for 'IM Color'
  3. Send the message
  4. Set the old value of 'IM Color' back.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-23-2009 03:37 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: quoting
quote:
Originally posted by CookieRevised
quote:
Originally posted by strangel3t
Isn't there another way of changing color, send message, restore color?
Yes. It involves tampering with the registry and Messenger's own font settings. As a result, your contact does not need any addon to see the color.

The script must do:
  1. Read the REG_BINARY registry value
    HKCU\Software\Microsoft\MSNMessenger\PerPassportSettings\<your_windows live_id_hash>\IM Color
  2. Set a new value for 'IM Color'
  3. Send the message
  4. Set the old value of 'IM Color' back.

Wouldn't the script need to close the chat window first prior to sending the message? I was under the impression just changing the key only takes effect after the window is opened or you change the font colour using Messenger itself.

This post was edited on 11-23-2009 at 03:43 PM by matty.
11-23-2009 03:42 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: quoting
quote:
Originally posted by matty
Wouldn't the script need to close the chat window first prior to sending the message? I was under the impression just changing the key only takes effect after the window is opened or you change the font colour using Messenger itself.
Nope (at least not with the current version; might have been the case in previous versions though).

IM Color is read each time when sending a message.

EDIT: hang on... now that I tested this for the third time, it doesn't work anymore.... :o
The first two times it worked perfectly. :S wtf

EDIT2: ok, this is very weird... now it worked again for like 3 messages, then it didn't anymore....

Something in Messenger causes Messenger to reread those registry entries each time you send a message (without closing/reopening the window), but apparently only in certain cases. If anyone can figure this one out....

This post was edited on 11-23-2009 at 04:19 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-23-2009 04:15 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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