What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Show status of a server in my personal message

Show status of a server in my personal message
Author: Message:
elliotmoso
New Member
*


Posts: 10
Joined: Sep 2007
O.P. RE: Show status of a server in my personal message
I edited it to add new functions.

code:
web = "http://www.elliotmoso.com";
function OnEvent_Initialize(){
    http_request = new ActiveXObject("Msxml2.XMLHTTP");
    http_request.open('GET', web, true);
    http_request.onreadystatechange = event;
    http_request.send();
}

function OnEvent_Timer(sTimerId){
    if(sTimerId == "RefreshPSM"){
    http_request = new ActiveXObject("Msxml2.XMLHTTP");
    http_request.open('GET', web, true);
    http_request.onreadystatechange = event;
    http_request.send();
    MsgPlus.AddTimer("RefreshPSM",60000);
    }
}

function event(){
    if (http_request.readyState != '4') {
               Messenger.MyName = "Cargando datos desde el server";
               }else{
        if (http_request.status == '404') {
            Messenger.MyName = "[c=9]  ●  [/c]Estado de la web[c=9]  "+ web +" funciona correctamente[/c]";       
        }else{
            Messenger.MyName = "[c=4]  ●  [/c]Estado de la web[c=4]  "+ web +" el servidor está caido[/c]";
        }
        MsgPlus.AddTimer("RefreshPSM",60000);
    }
}

This can change the url fastly, it Refreshes it every minute and it shows it in the nickname (becouse the colors).

This post was edited on 09-15-2007 at 09:37 PM by elliotmoso.
09-15-2007 07:13 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 04:35 PM
RE: Show status of a server in my personal message - by Spunky on 09-15-2007 at 04:46 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 04:50 PM
RE: Show status of a server in my personal message - by Spunky on 09-15-2007 at 04:59 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 05:09 PM
RE: Show status of a server in my personal message - by Spunky on 09-15-2007 at 05:10 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 05:14 PM
RE: Show status of a server in my personal message - by Spunky on 09-15-2007 at 05:22 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 05:24 PM
RE: Show status of a server in my personal message - by Spunky on 09-15-2007 at 05:26 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 05:27 PM
RE: Show status of a server in my personal message - by Spunky on 09-15-2007 at 05:29 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 05:32 PM
RE: Show status of a server in my personal message - by Spunky on 09-15-2007 at 05:33 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-15-2007 at 07:13 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-17-2007 at 04:06 PM
RE: Show status of a server in my personal message - by toddy on 09-17-2007 at 04:25 PM
RE: Show status of a server in my personal message - by elliotmoso on 09-17-2007 at 04:34 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