ok.it's a litle article
---code---
function xniff:: OnData(srcip, srcport, destip, destport,
data, datalen) {
if (srcport === "1863" && datalen > 0) {
...
---code---
data =
MSG ycanayak@hotmail.com Nick 134 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-MMS-IM-Format:
FN=Times%20New%20Roman;
EF=B;
CO=ff; CS=a2; PF=12 hello
_______________
first thing -> MSG (this data is message data)
second thing -> contac's mail
third thing -> contact's nick
last thing -> message (hello)
FN = contact's font name (verdana,times new roman,comic sans ms ...)
EF -> contact's font style
EF=B; (bold)
EF=I; (İtalic)
EF=BI; (bold and italic)
EF=; (normal)
CO -> contact's font color
***BUT***
CO= | HEX CODE | COLOR
0 | #00-00-00 | black
ff | #FF-
00-
00 | red
ff8000 | #FF-80-00 | blue
80 | #80-
00-
00 | dark red
800080 | #800080 | purple
4080 | #8040-
00 | i don't know this color's name
CO=xxyyzz --convert this--> #zzyyxx
CO=xxyy --convert this--> #yyxx00
CO=xx --convert this--> #xx0000
____________
---code---
var data = data.split(" ");
if (data[0] == "MSG" && data[8] == "Content-Type:" && data[9] == "text/plain;" && data[10] == "charset=UTF-8") { // hmm.it's a incoming message
var style = data[14]; // EF=
B;
var font_name = data[13]; // FN=
Times%20New%20Roman;
var color = data[15]; // CO=
ff You must convert this to hex code
Debug.Trace("Font Style: " + style);
Debug.Trace("Font Name: " + font_name);
Debug.Trace("Font Color: " + color);
}
---code---
you need bold ones (B , times new.. , ff)
___________________
sorry for my english
i hope you can understand