What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Help With a Text Plug-In

Help With a Text Plug-In
Author: Message:
manuelnaranjo
New Member
*


Posts: 6
Joined: Jul 2004
O.P. Huh?  Help With a Text Plug-In
I want to make a plug-in that changes the colour of the text that i pass to the command.
I know that there are plug-ins that all ready do this, but there is nothing like a plug made at home.
My problem is that i canīt use the (!fcxx) tag, i know that i must use the sCCColor constant, but i donīt know how to.
Please if anyone can help me, i would be glad
Manuel


pd: Sorry for my english
07-25-2004 08:14 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Help With a Text Plug-In
In VB, just use the normal string concatenation. You may need to use Char() as well, I can't remember.
In C++, you'll have to use strcat() to get the same effect.

Follow the sCCColor by two comma separated numbers. The first is foreground, the second background. Any number from 0 to 63 can be used (0 to 15 for Plus 2). I recommend using a leading zero on single digits: it will limit possible bugs.

This post was edited on 07-25-2004 at 08:20 PM by RaceProUK.
[Image: spartaafk.png]
07-25-2004 08:19 PM
Profile PM Web Find Quote Report
manuelnaranjo
New Member
*


Posts: 6
Joined: Jul 2004
O.P. RE: Help With a Text Plug-In
Thanks, it really worked out
07-25-2004 08:29 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Help With a Text Plug-In
quote:
Originally posted by raceprouk
You may need to use Char() as well, I can't remember.
true (Y)
quote:
Originally posted by raceprouk
Any number from 0 to 63 can be used
the formats (RRR,GGG,BBB) and #RRGGBB are also allowed for colors. In the 1st format, the letters are 3-ditigs decimal numbers (like (054,005,255)) and in the 2nd format they're hexadecimal digits (like in #3366cc)
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-25-2004 09:22 PM
Profile PM Find Quote Report
manuelnaranjo
New Member
*


Posts: 6
Joined: Jul 2004
O.P. RE: Help With a Text Plug-In
How do you say i can use that????
I concat that colour with the text i want to send???
07-26-2004 05:38 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Help With a Text Plug-In
quote:
Originally posted by manuelnaranjo
I concat that colour with the text i want to send???
yes. You have to create a string that has the sCCColor character followed by the color code and followed by the text you want in that color. For example:
"Hello X#3366ccWorld"
^in that string, suppose that the X is the sCCColor character. Well, that string will be displayed like this:
Hello World
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-26-2004 07:34 PM
Profile PM Find Quote Report
(CyBeRDuDe)
Senior Member
****


Posts: 512
Reputation: 21
38 / Male / –
Joined: Jul 2003
RE: Help With a Text Plug-In
if your using VB the example would be like this:
' Replace 3366cc with the color code...

sResult = "Hello " & Char(sCCColor) & "#3366ccWorld"



If I'm mistaking then please correct me... :P

This post was edited on 07-26-2004 at 08:14 PM by (CyBeRDuDe).
07-26-2004 08:12 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Help With a Text Plug-In
quote:
Originally posted by (CyBeRDuDe)
Char(sCCColor)
In fact it'd be Chr$(sCCColor) instead of that Char function, but the idea is right ;)

In C it'd be

strcpy(sResult, "Hello ");
strcat(sResult, sCCColor);
strcat(sResult, "#3366ccWorld");

:banana:

This post was edited on 07-26-2004 at 10:07 PM by Choli.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-26-2004 10:06 PM
Profile PM Find Quote Report
manuelnaranjo
New Member
*


Posts: 6
Joined: Jul 2004
O.P. RE: Help With a Text Plug-In
Thanks folk, i will try it
07-27-2004 01:44 AM
Profile E-Mail 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