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

A Challenge!
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: A Challenge!
I didn't know you could "set" a substr()? :O

...
Oh yeh, that's because you can't. :P Try this instead of the "Message[s].substr(0,1) = ..." line:
code:
Message[s] = "[c=4]"+Message[s].charAt(0)+"[/c]"+Message[s].substr(1);
I more like to use charAt(0) instead of substr(0,1) because it's shorter and easier to understand. :) (the first character uh! ;))

However you should note that this will NOT work on words after a new-line or tab character. I'll see if I can do the same with replace combined with a function...

This post was edited on 09-28-2007 at 04:11 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-28-2007 04:09 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
A Challenge! - by Nopraptor on 09-27-2007 at 05:04 PM
RE: A Challenge! - by Spunky on 09-27-2007 at 05:17 PM
RE: A Challenge! - by Matti on 09-28-2007 at 04:09 PM
RE: A Challenge! - by Spunky on 09-28-2007 at 06:04 PM


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