Shoutbox

[help]emoticons & Xniff - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [help]emoticons & Xniff (/showthread.php?tid=72582)

[help]emoticons & Xniff by Orgrim Doomhammer on 03-12-2007 at 02:10 PM

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::OnData(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?

           
             
       


RE: [help]emoticons & Xniff by effection on 03-12-2007 at 06:35 PM

so you want to filter out emotions for specified contacts? il see what i can do


RE: [help]emoticons & Xniff by Orgrim Doomhammer on 03-12-2007 at 06:36 PM

thx