What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » headache: Special characters.

headache: Special characters.
Author: Message:
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: headache: Special characters.
You could try this, don't think it will work but its cleaner and nicer...

code:
function AddLineToFile (file, line)
{
    if (!fsObj.FileExists(MsgPlus.ScriptFilesPath + '\\' + file))
    {
            var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 2, 1);
    }
         else
    {
               var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 8, 0);
          fileObj.WriteLine(MsgPlus.RemoveFormatCodes(line));
          fileObj.Close();
    }
}

Also, if you wanted to just replace some characters, you could try

code:
str.replace(/CharacterToReplace/, "NewCharacter");

Sorry, don't think I can really help you anymore.

This post was edited on 07-23-2007 at 11:59 AM by davidpolitis.
07-23-2007 11:42 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
headache: Special characters. - by runarius on 07-23-2007 at 10:29 AM
RE: headache: Special characters. - by davidpolitis on 07-23-2007 at 10:47 AM
RE: headache: Special characters. - by runarius on 07-23-2007 at 10:49 AM
RE: RE: headache: Special characters. - by davidpolitis on 07-23-2007 at 10:51 AM
RE: headache: Special characters. - by runarius on 07-23-2007 at 11:03 AM
RE: RE: headache: Special characters. - by davidpolitis on 07-23-2007 at 11:05 AM
RE: headache: Special characters. - by runarius on 07-23-2007 at 11:09 AM
RE: headache: Special characters. - by davidpolitis on 07-23-2007 at 11:10 AM
RE: headache: Special characters. - by runarius on 07-23-2007 at 11:11 AM
RE: headache: Special characters. - by davidpolitis on 07-23-2007 at 11:12 AM
RE: headache: Special characters. - by runarius on 07-23-2007 at 11:26 AM
RE: headache: Special characters. - by davidpolitis on 07-23-2007 at 11:42 AM
RE: headache: Special characters. - by Deco on 07-23-2007 at 01:40 PM
RE: headache: Special characters. - by matty on 07-23-2007 at 01:44 PM
RE: headache: Special characters. - by runarius on 07-23-2007 at 02:37 PM
RE: headache: Special characters. - by MeEtc on 07-23-2007 at 02:44 PM
RE: headache: Special characters. - by runarius on 07-23-2007 at 02:57 PM
RE: headache: Special characters. - by matty on 07-23-2007 at 03:56 PM
RE: headache: Special characters. - by runarius on 07-23-2007 at 04:18 PM
RE: headache: Special characters. - by Voldemort on 07-23-2007 at 04:21 PM
RE: headache: Special characters. - by matty on 07-23-2007 at 04:30 PM
RE: headache: Special characters. - by davidpolitis on 07-25-2007 at 06:33 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