Shoutbox

[?] CrazyText Style Trouble - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] CrazyText Style Trouble (/showthread.php?tid=70344)

[?] CrazyText Style Trouble by Spunky on 01-05-2007 at 07:26 PM

I'm working on CrazyText and in order for the styles to work, I created this segment of code for EACH style:

code:
    if(style===0){
            Message=Message.split(" ");
            for(s in Message){
                    if(isURL(Message[s])==false && isEmote(Message[s])==false){
                    Message[s] = Message[s].replace(/a/gi,"α");
                 ...
                 ...
                    }
            }
        Message=Message.join(" ");
        return Message;
}


That works fine for one style (the first), but the others get an error (on the line where the first replace takes place). I have noticed with the other styles that the font is actual changed inside the script editor...

[Image: 1.png] [Image: 2.png]

Is it possible that the style is causing an error running the script as all the "segments" are identical to that above except with different style numbers and replacement letters

EDIT: Added thread title :$
RE: [?] CrazyText Style Trouble by Mnjul on 01-05-2007 at 07:52 PM

What's the detailed error message in the debug window? :)


RE: [?] CrazyText Style Trouble by Spunky on 01-05-2007 at 08:23 PM

quote:
Error: Object doesn't support this property or method.
       Line: 120. Code: -2146827850.


Line number varies depending on the style.

I think it's because of an error when splitting the message up into words ^o)

PS: Sorry about slow reply... computer MELTED :s
RE: [?] CrazyText Style Trouble by skyserpent on 01-05-2007 at 10:55 PM

I have removed the faulty font and all seems to be in order now except a slight GUI problem :( I'm trying to fix it now...

Check out the new version of crazytext :)


RE: [?] CrazyText Style Trouble by markee on 01-06-2007 at 04:01 AM

May I ask why you split it?  I'll talk to you more on WLM or PM if you want because there looks to be a lot of code you can minimise IMO.


RE: [?] CrazyText Style Trouble by Mnjul on 01-06-2007 at 08:16 AM

There should be no problem for the crazy chars..provided your jscript (should be) is stored in Unicode.

Anyway, why not use \xxxx to represent the char? :p