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:
dbgtrgr
New Member
*

Avatar
^.^

Posts: 14
33 / Male / –
Joined: Apr 2004
O.P. Problem with Emoticons
Ok, I have a script that simply makes what you say into a 3 color gradient, which means it adds a color tag in the middle of the message, which means any emoticons sent alone will not work as a color tag will be placed in the middle, is there a way to fix this without making a workaround for EVERY emoticon tag?
Countdown to Christmas: 6350 days, 3 hours, 10 minutes, 51 seconds ago
09-26-2006 03:11 AM
Profile E-Mail PM Find Quote Report
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
dbgtrgr
New Member
*

Avatar
^.^

Posts: 14
33 / Male / –
Joined: Apr 2004
O.P. RE: Problem with Emoticons
Thx!!! You rockz0r3z. ;D Thats some 1337 thinking there.
Countdown to Christmas: 6350 days, 3 hours, 10 minutes, 51 seconds ago
09-26-2006 10:34 PM
Profile E-Mail PM 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