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:
bramvandeperre
Junior Member
**

Avatar
Some random dude

Posts: 56
Reputation: 3
32 / Male / Flag
Joined: Oct 2007
Status: Away
O.P. question - plugin
hi,

because mynetx is making LCheck, i don't know anything about scripting in messenger plus.

i wanted to have a script that changes your PSM to the content of http://lendetta.be/extest.php ..

can someone make it for me :$ ?

just this, no additional functions like the abillity to turn it off..


already thanks,

Bram
12-04-2007 04:48 PM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: question - plugin
Use the Microsoft.XMLHTTP object! :D I think you can find enough examples of how to use the XMLHTTP object on these forums, and if you're having trouble with it, feel free to ask here! ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-04-2007 05:40 PM
Profile E-Mail PM Web Find Quote Report
bramvandeperre
Junior Member
**

Avatar
Some random dude

Posts: 56
Reputation: 3
32 / Male / Flag
Joined: Oct 2007
Status: Away
O.P. RE: question - plugin
yes.. i know i had to use xml.http requests, but, i don't know how..
12-04-2007 05:46 PM
Profile E-Mail PM Web Find Quote Report
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
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: question - plugin
Bram, you could say that you don't need the code anymore, because others are thinking about solutions for you, as you can see.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
12-05-2007 12:02 PM
Profile E-Mail PM Web Find Quote Report
bramvandeperre
Junior Member
**

Avatar
Some random dude

Posts: 56
Reputation: 3
32 / Male / Flag
Joined: Oct 2007
Status: Away
O.P. RE: question - plugin
yes indeed, thanks but, i have (thanks to mynetx again) a script that auto-checks every 10 minutes, with a PSM lock etc..
12-08-2007 10:02 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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