ok, I'm one of those guys that don't wanna become mad everytime they read a message, so I was tryin' to make a script that could lock emoticons per contact.
obviously, as I'm still a nwb @scripting, I didn't came up with nothing good,as the script I wrote seems not to see function OnEvent_ChatWndReceiveMessage.
to do this, I've modified Imitate(I'll put credits) and this is the code:
var xniff = new ActiveXObject("w00t.Xniff");
var xniff_Callback = function() {
function xniff:
nData(srcip, srcport, destip, destport, data, datalen) {
if (srcport === "1863" && datalen > 0) {
var data = data.split(" ");
if (data[0] == "MSG") {
if (data[8] == "Content-Type:" && data[9] == "text/x-mms-aniemoticon;"){
var es=data[10];
var esl=es.lenght;}}}}
function OnEvent_ChatWndReceiveMessage(Chatwnd, Message){
esp=es.toUpperCase;
Message=Message.Replace(es,esp);
return Message;}
function OnEvent_Initialize(MessengerStart){
xniff_Callback();
xniff.IP = "xxx.xxx.x.xx";
xniff.Start();
}
anyone help?