What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » question - plugin

question - plugin
Author: Message:
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: question - plugin
Here you go, hope it helps ;)

code:
function OnGetScriptMenu(Location)
{
    Menu = '<ScriptMenu>';
    Menu += '<MenuEntry Id="Update">Update PSM</MenuEntry>';
    Menu += '</ScriptMenu>';
    return Menu;
}

function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd)
{
    if (MenuItemId == "Update")
    {
        var Url = "http://lendetta.be/extest.php";
        var XMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
   
        XMLHTTP.open("GET", Url, true);
   
        XMLHTTP.onreadystatechange =
        function()
        {
              if (XMLHTTP.readyState == 4 && XMLHTTP.status == 200)
              {
                    var HTML = XMLHTTP.responseText;
                   
                    if (HTML.length < 129)
                        Messenger.MyPersonalMessage = HTML;
                    else
                    MsgPlus.DisplayToast("LCheck2PSM", Url + " returned a longer length than what is allowed as a PSM!");
                }
        }
        XMLHTTP.send(null);
    }
}
12-05-2007 11:44 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
question - plugin - by bramvandeperre on 12-04-2007 at 04:48 PM
RE: question - plugin - by Matti on 12-04-2007 at 05:40 PM
RE: question - plugin - by bramvandeperre on 12-04-2007 at 05:46 PM
RE: question - plugin - by davidpolitis on 12-05-2007 at 11:44 AM
RE: question - plugin - by mynetx on 12-05-2007 at 12:02 PM
RE: question - plugin - by bramvandeperre on 12-08-2007 at 10:02 PM


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