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:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: Replace Colour Codes
Thanks, been talking with SilentDragon on WLM and we seem to have sorted it out :D

I'll post the code for others that are looking for the same thing so it does not get asked again :p

code:
for(a=0;a<=54;a++){

    strMyNewPSM = strMyNewPSM.replace(new RegExp("\\[c="+a+"\\]",'gi'),"·$"+a+" ");
    strMyNewPSM = strMyNewPSM.replace(/\[\/c\]/g,'·$1');
   
    }
    strMyNewPSM = strMyNewPSM.replace(/ [\s]/g,"");


EDIT: My code was using a loop to change EACH colour individually so putting it in another loop was the only alternative... After trying this I had to close WLM and edit the file in Notepad as it caused a wierd loop error :p

This post was edited on 09-07-2006 at 09:22 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-07-2006 09:18 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