Shoutbox

Remove custom emoticons from message + possible bug in Plus? - 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: Remove custom emoticons from message + possible bug in Plus? (/showthread.php?tid=62628)

Remove custom emoticons from message + possible bug in Plus? by pollolibredegrasa on 07-05-2006 at 10:50 PM

OK, not sure if I should post this here but anyways:

When a message is received on OnEvent_ChatWndReceiveMessage, is it possible to remove all the custom emoticons contained in it?

The reason being, which also leads to my question about a possible bug is this:

I have a contact who has an emoticon pinned to #.

When they send me a message containing a colour code in the format:

#000000

the colour code succeeds in changing the text colour, however the emoticon appears, followed by what seems to be 6 spaces.

Not sure whether the 6 spaces thing could be a bug in Plus!, but I'm thinking if not then maybe by removing custom emoticons from the message before sending it to the window it will solve this.

Anyway, as usual, any help is appreciated :)


Edit: This is what happens:

Code typed (emoticon is the hash)

Received message appears like this


RE: Remove custom emoticons from message + possible bug in Plus? by RaceProUK on 07-09-2006 at 08:51 PM

It's a limitation caused by the operation of emoticon insertion. I doubt a script could work around it. Just get the contact to change the shortcut.


RE: Remove custom emoticons from message + possible bug in Plus? by Voldemort on 07-09-2006 at 09:04 PM

Yes, just like cutom emos in regular letters with custom sounds...


RE: Remove custom emoticons from message + possible bug in Plus? by CookieRevised on 07-09-2006 at 10:28 PM

quote:
Originally posted by fatfreechicken
OK, not sure if I should post this here but anyways:

When a message is received on OnEvent_ChatWndReceiveMessage, is it possible to remove all the custom emoticons contained in it?

The reason being, which also leads to my question about a possible bug is this:

I have a contact who has an emoticon pinned to #.

When they send me a message containing a colour code in the format:

#000000

the colour code succeeds in changing the text colour, however the emoticon appears, followed by what seems to be 6 spaces.

Not sure whether the 6 spaces thing could be a bug in Plus!, but I'm thinking if not then maybe by removing custom emoticons from the message before sending it to the window it will solve this.
The spaces appear because those color codes are special (actually non-printable) characters. eg: select the text containing those characters in your post here. You'll see that strange things will happen. Copy/paste the string to the edit box and try to remove some character from the string. Again you'll see things will be fux0red. That's the cause of those spaces. Not much can be done for it, it's just that those characters are printed while they are actually not printable (and thus even maybe will be replaced with spaces by WLM)....