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

Pages: (2): « First [ 1 ] 2 » Last »
Emoticons disappear!
Author: Message:
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
O.P. Dodgy  Emoticons disappear!
When a script tries to send a message using the ChatWnd.SendMessage() method, all the smileys in the edit box are replaced by a space.

How can I make a script send text without ruining what the user is typing?
07-01-2006 12:30 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Emoticons disappear!
It's due to the emoticon auto-replace, and sounds like a limitiation to me.
[Image: spartaafk.png]
07-01-2006 01:58 PM
Profile PM Web Find Quote Report
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
O.P. RE: Emoticons disappear!
But for example, messages sent to the conversation window preserve emoticon shortcuts when you press Ctrl+Up to review sent messages.
Also, when I use the /all command, Plus! does send emoticons to all windows. It seems like Plus! really can read the emoticons that are in the conversation window.

Why can't it restore them? Or at least replace them with the emoticon shortcut text again?
07-01-2006 06:01 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Emoticons disappear!
Plus! sends messages by adding text to the conversation window's textbox and simulating the enter key's press. This is how it sends custom emoticons.

If there is text in the box when it sends it, it copies it and pastes it back in after it's sent.

Because the auto-replaced emoticons are images, they come out as a space. This is normal.

However, when the user presses "send", messenger sends it all as text, and sends the images separately in what the protocol calls a "MSN Object".

This way, Plus! can see what the emoticon shortcuts are.

Answer to your question: It can't restore them because it just copy/pastes the text. Try this manually, the emoticons will be replaced with spaces. It can't get the shortcut text because the box contains images, and since it's not being sent, you can't do that.

An alternative to your problem, though not a very good one, is to log what the user types into a variable using the edit key pressed event. Then, use SendMessage, and after that's sent, set the edit text to the variable. This will set it to what plus sets it to, but since it checks it key-by-key (instead of copying it all at one time), the emoticon shortcuts will be preserved.
07-01-2006 07:24 PM
Profile PM Find Quote Report
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
O.P. RE: Emoticons disappear!
quote:
Originally posted by deAd
It can't get the shortcut text because the box contains images, and since it's not being sent, you can't do that.
Then how is it able to tell what emoticon I typed when I use the /all command? It correctly sends the emoticon I typed to all my open converstations. Or the /name command? It correctly sets the emoticon in my Display Name.

Plus! seems to be able to get the emoticons (custom or standard, it doesn't matter) in so many situations, why is it that it can't do it in this case?
07-01-2006 07:34 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Emoticons disappear!
I believe it's because, with /all, Plus! is able to access the MSN Objects, as the message is fully formed when Send is pressed.
[Image: spartaafk.png]
07-01-2006 11:43 PM
Profile PM Web Find Quote Report
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
O.P. RE: Emoticons disappear!
What is a "fully formed" message?
07-02-2006 08:50 AM
Profile E-Mail PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
35 / Male / Flag
Joined: May 2004
RE: Emoticons disappear!
Emoticons and formatted text already parsed.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
07-02-2006 12:08 PM
Profile E-Mail PM Web Find Quote Report
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
O.P. RE: Emoticons disappear!
Isn't a message always "fully formed"? Emoticons get parsed as soon as they're typed in.

Where's Patchou? :(
07-02-2006 04:55 PM
Profile E-Mail PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: Emoticons disappear!
Fixed, thanks for reporting :)
[Image: signature2.gif]
07-02-2006 05:57 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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