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

Problem with Emoticons
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Problem with Emoticons
At the moment, there is no practical way to detect all of the user's emoticon shortcuts.

However, you can make the gradient not work on messages 7 characters or less. This includes every emoticon (the limit is 7 characters).

You could also find how many emoticons there are in a chat window (or an approximate amount) by setting the cursor position to the end of the message box, and then calling the ChatWnd.EditText_GetCurSelEnd() function, which counts each emoticon as one character (that's a bug btw, at least imo, but you can use it to your advantage).

Using the Cursor method, you could find out if there are emoticons in the text field very easily. It would be harder to get an exact amount of emoticons, and even harder to get their positions (if those two were even possible), but those are your choices.


EDIT: Actually, since you want to check if there is one emoticon being sent alone, just use the cursor method. If there are seven characters or less in the ChatWnd.EditText property, and the cursor's position (after you put it at the end) is 1, then you have one emoticon in the message, and no other text/emoticons :)

This post was edited on 09-26-2006 at 03:25 AM by deAd.
09-26-2006 03:24 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Problem with Emoticons - by dbgtrgr on 09-26-2006 at 03:11 AM
RE: Problem with Emoticons - by deAd on 09-26-2006 at 03:24 AM
RE: Problem with Emoticons - by dbgtrgr on 09-26-2006 at 10:34 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