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

Replace Colour Codes
Author: Message:
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: Replace Colour Codes
quote:
Originally posted by CookieRevised
The request was to replace bbcode color codes, so they don't exist anymore in the string. This means if a gradient is done, that code should be replaced too (with whatever) and not be left in because "irc codes don't support gradients".
I removed them already, didn't I?

quote:
Originally posted by CookieRevised
PS: as said, if hexadecimal color codes are used, Plus! will interpret the first 6 characters, but anything after that is ignored (as long as the string doesn't exceep 53 characters). So add ".{0,53}" after each "[0-9A-Fa-f]{6}" (but they shouldn't be captured of course).
Didn't know that, just thought it used standard colorcodes (a 6 char Hex val)

quote:
Originally posted by CookieRevised
1) "[1-6]?\d" should actually be "[0-9]{1,2}". Numbers from 0 to 99 are allowed.
The numbers are only relevant til a certain amount, after that, the standard is black...  But like you said, that doesn't mean it shouldn't be replaced

quote:
Originally posted by CookieRevised
2) the irc codes should contain 2 digits, not 1. 1 digit is possible to use, but may conflict with the actual string you try to color if it begins with a number. Same for backgrounds.
True, and I have no idea how to do this :S... unfortunately you can't check during the 'replace' call... But it should be possible, just have to take a closer look into it...

quote:
Originally posted by SpunkyLoveMuff
Yeah, I just needed [c=?] replaced with ·$? and I changed all the [/c] tags to ·$1.
Actually, you need to replace [/c] with ·$, because ·$1 will give you black, not the standard color (But that'll give problems with a number after it)

This post was edited on 09-08-2006 at 10:42 PM by Shondoit.
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-08-2006 10:40 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Replace Colour Codes - by Spunky on 09-07-2006 at 08:20 PM
RE: Replace Colour Codes - by alexp2_ad on 09-07-2006 at 08:31 PM
RE: Replace Colour Codes - by Spunky on 09-07-2006 at 08:32 PM
RE: Replace Colour Codes - by KnRd_WC on 09-07-2006 at 09:15 PM
RE: Replace Colour Codes - by deAd on 09-07-2006 at 09:17 PM
RE: Replace Colour Codes - by Spunky on 09-07-2006 at 09:18 PM
RE: Replace Colour Codes - by Shondoit on 09-08-2006 at 03:42 PM
RE: Replace Colour Codes - by Matti on 09-08-2006 at 04:17 PM
RE: Replace Colour Codes - by Shondoit on 09-08-2006 at 04:21 PM
RE: Replace Colour Codes - by CookieRevised on 09-08-2006 at 04:35 PM
RE: Replace Colour Codes - by Shondoit on 09-08-2006 at 04:45 PM
RE: RE: Replace Colour Codes - by CookieRevised on 09-08-2006 at 04:51 PM
RE: Replace Colour Codes - by Shondoit on 09-08-2006 at 04:57 PM
RE: Replace Colour Codes - by CookieRevised on 09-08-2006 at 05:07 PM
RE: Replace Colour Codes - by Spunky on 09-08-2006 at 05:15 PM
RE: Replace Colour Codes - by Eljay on 09-08-2006 at 05:20 PM
RE: Replace Colour Codes - by Spunky on 09-08-2006 at 05:23 PM
RE: Replace Colour Codes - by CookieRevised on 09-08-2006 at 05:24 PM
RE: Replace Colour Codes - by Spunky on 09-08-2006 at 05:28 PM
RE: Replace Colour Codes - by Shondoit on 09-08-2006 at 10:40 PM
RE: Replace Colour Codes - by Spunky on 09-08-2006 at 10:43 PM
RE: Replace Colour Codes - by Shondoit on 09-08-2006 at 10:49 PM
RE: Replace Colour Codes - by Spunky on 09-08-2006 at 10:51 PM
RE: Replace Colour Codes - by Shondoit on 09-08-2006 at 10:53 PM
RE: RE: Replace Colour Codes - by CookieRevised on 09-09-2006 at 02:08 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