What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] CrazyText Style Trouble

[?] CrazyText Style Trouble
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. [?] CrazyText Style Trouble
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 :$

This post was edited on 01-05-2007 at 07:29 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
01-05-2007 07:26 PM
Profile PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: [?] CrazyText Style Trouble
What's the detailed error message in the debug window? :)
01-05-2007 07:52 PM
Profile PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] CrazyText Style Trouble
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
<Eljay> "Problems encountered: shit blew up" :zippy:
01-05-2007 08:23 PM
Profile PM Find Quote Report
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
RE: [?] CrazyText Style Trouble
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 :)

This post was edited on 01-06-2007 at 03:14 AM by skyserpent.
01-05-2007 10:55 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [?] CrazyText Style Trouble
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.
[Image: markee.png]
01-06-2007 04:01 AM
Profile PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: [?] CrazyText Style Trouble
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
01-06-2007 08:16 AM
Profile 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