What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get the contacts color

Get the contacts color
Author: Message:
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
RE: Get the contacts color
Well, you forgot a few things:
code:
var xniff = new ActiveXObject("w00t.Xniff");
xniff.IP = getLocalIp();

function xniff::OnData(srcip, srcport, destip, destport, data, datalen)
{
    if (srcport === "1863" && datalen > 0)
    {
        var data = data.split(" ");

        if (data[0] == "MSG" && data[8] == "Content-Type:" && data[9] == "text/plain;" && data[10] == "charset=UTF-8")
        {
            var style = data[14];
            var font_name = data[13];
            var color = data[15];

            Debug.Trace("Font Style: " + style);
            Debug.Trace("Font Name: " + font_name);
            Debug.Trace("Font Color: " + color);
        }
    }
}

function OnEvent_Initialize(MessengerStart)
{
    xniff.Start();
}

function OnEvent_Uninitialize(MessengerExit)
{
    xniff.Stop();
}

function getLocalIp()
{
    var wmiObj = new ActiveXObject('WbemScripting.SWbemLocator');
    var wmiInst = wmiObj.ConnectServer('.', "root\\cimv2");
    wmiInst.Security_.ImpersonationLevel = 3;

    var col = wmiInst.ExecQuery('Select * from Win32_NetworkAdapterConfiguration');
    var colEnum = new Enumerator(col);

    var ipAddr;

    for (; !colEnum.atEnd(); colEnum.moveNext())
    {
        var objIp = colEnum.item();
        var addr = objIp.IPAddress(0);
        if(typeof addr == 'string' && addr.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/))
        {
            ipAddr = addr;
        }
    }
    return ipAddr;
}



This post was edited on 11-13-2006 at 02:16 PM by Plan-1130.
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
11-13-2006 02:10 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Get the contacts color - by SnuZZer on 11-12-2006 at 09:21 AM
RE: Get the contacts color - by transit on 11-12-2006 at 01:47 PM
RE: Get the contacts color - by Spunky on 11-12-2006 at 02:34 PM
RE: RE: Get the contacts color - by Huhu_Manix on 11-12-2006 at 03:27 PM
RE: RE: Get the contacts color - by MrT on 11-12-2006 at 03:29 PM
RE: Get the contacts color - by SnuZZer on 11-12-2006 at 06:39 PM
RE: Get the contacts color - by bgmrk on 11-12-2006 at 08:07 PM
RE: Get the contacts color - by MrT on 11-12-2006 at 10:18 PM
RE: Get the contacts color - by Chris4 on 11-12-2006 at 10:33 PM
RE: Get the contacts color - by SnuZZer on 11-13-2006 at 06:12 AM
RE: Get the contacts color - by Plan-1130 on 11-13-2006 at 08:46 AM
RE: Get the contacts color - by SnuZZer on 11-13-2006 at 02:01 PM
RE: Get the contacts color - by Plan-1130 on 11-13-2006 at 02:10 PM
RE: Get the contacts color - by SnuZZer on 11-13-2006 at 03:32 PM
RE: Get the contacts color - by MrT on 11-13-2006 at 08:26 PM
RE: Get the contacts color - by MicroWay on 11-13-2006 at 08:52 PM
RE: Get the contacts color - by EBFL on 11-13-2006 at 08:53 PM
RE: Get the contacts color - by MrT on 11-13-2006 at 08:59 PM
RE: Get the contacts color - by SnuZZer on 11-15-2006 at 05:53 AM
RE: Get the contacts color - by MrT on 11-15-2006 at 03:27 PM
RE: Get the contacts color - by SnuZZer on 11-15-2006 at 04:17 PM
RE: Get the contacts color - by Plan-1130 on 11-15-2006 at 11:19 PM
RE: Get the contacts color - by CookieRevised on 11-16-2006 at 02:18 AM


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