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

removing emotions?
Author: Message:
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
O.P. RE: removing emotions?
okay, here is basically what my script is there's other things added to it but this most simplest version and it wont even work.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){

    var EmoCI = /(:((-?(\)|D|>|O|P|\(|<|@|S|\$|\||\[)|-(\*|#))|'\()|;-?\)|\([A-IK-PRTUW-Z068@&{}#%*~^]\))/ig
    var EmoCS = /(8(o\||-\))|<:o\)|\+o\(|\((brb|pi|\|\||sn|bah|tu|pl|ip|li|st|um|co|mp|ap|au|so|ci|yn|h5|xx|mo)\))/g
        if(Message == ":)"){Debug.trace("SMILE!!");Message = "replaced!";}
    return Message;//Message.replace(EmoCI, "_emoticon removed_");
}



:S

even this wont work if an emoticon was sent
[code]
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
return "removed";
}

i have worked out though that if i sent a message "1234" and replaced it with "123456789" only "1234" would be displayed because msn must still remember the length of the sent message but even if i replace the emotion":)" with a 2 character long replacement makes no difference


@vikke - that will only remove custom emoticons that you have, and not ones sent by the other contact (unless you also have the same emoticon with the same shortcut) but i can find custom emoticons sent fine i just need to get this replacement function working...

This post was edited on 03-15-2007 at 09:17 PM by effection.
03-15-2007 09:15 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
removing emotions? - by effection on 03-14-2007 at 09:01 PM
RE: removing emotions? - by xsylvain2 on 03-14-2007 at 09:54 PM
RE: removing emotions? - by effection on 03-14-2007 at 10:10 PM
RE: removing emotions? - by Spunky on 03-15-2007 at 03:50 PM
RE: removing emotions? - by effection on 03-15-2007 at 04:01 PM
RE: removing emotions? - by Matti on 03-15-2007 at 07:17 PM
RE: removing emotions? - by vikke on 03-15-2007 at 08:59 PM
RE: removing emotions? - by effection on 03-15-2007 at 09:15 PM
RE: removing emotions? - by vikke on 03-16-2007 at 09:26 AM
RE: removing emotions? - by effection on 03-16-2007 at 04:01 PM
RE: removing emotions? - by Matti on 03-16-2007 at 07:55 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