What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] strip newline chars

[help] strip newline chars
Author: Message:
AberNStein
Full Member
***


Posts: 132
Reputation: 2
Joined: Jul 2006
O.P. [help] strip newline chars
so my script is toasting messages recieved, but if the message has a return or a newline it shows up as one of them rectangle thingies in the toast. i've tried Message = Message.replace('\s',' '); and i've tried that with \n and \r too. how do i strip newline and carriage returns?
[Image: gybouserbar6hc.gif]
07-18-2006 01:35 AM
Profile PM Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [help] strip newline chars
Message = Message.replace(/\n|\r/g,"");

That should do it for you.
07-18-2006 02:17 AM
Profile E-Mail PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
Status: Online
RE: [help] strip newline chars
[Solved]Weird breakline problems

By the way, dont look at "[Solved]"
It seems that it also happens with normal Plus! windows...
quote:
Originally posted by Silentdragon
Message = Message.replace(/\n|\r/g,"");

That should do it for you.
Thanks.

I will try that and see if this works...
YouTube closed-captions ripper (also allows you to download videos!)
07-18-2006 06:25 PM
Profile E-Mail PM Web 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