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
Hi guys I edited some the script but the state of charging don't work.
here I put my code:
code:
//En la variable web solo poner el dominio sin http:// ni www.  //
web = "elliotmoso.com";
metodo = true;  //GET=true POST=false
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
bar = 0;
barra = 0;
if(metodo==true){
tipo = "GET";
}else{
tipo = "POST";
}
function OnEvent_Initialize(){
    http_request = new ActiveXObject("Msxml2.XMLHTTP");
    http_request.open(tipo, "http://www."+web+"/", true);
    http_request.onreadystatechange = event;
    http_request.send();
}

function OnEvent_Timer(sTimerId){
    if(sTimerId == "Recargar"){
    http_request = new ActiveXObject("Msxml2.XMLHTTP");
    http_request.open(tipo, "http://www."+web+"/", true);
    http_request.onreadystatechange = event;
    http_request.send();
    MsgPlus.AddTimer("Recargar",120000);
    }
    if(sTimerId == "Cargando"){
    if(barra <= 3){
    barra = ++bar;
    }else{
    barra = 0;
    bar = 0;
    }
    MsgPlus.AddTimer("Cargando", 500);
    }

}


function event(){
if (http_request.readyState <= 3) {
                   if (barra==0){
                Messenger.MyPersonalMessage = "Cargando [c=3][/c][c=4]&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;[/c]";
            }else if (barra==1){
                Messenger.MyPersonalMessage = "Cargando [c=3]&#9608;&#9608;[/c][c=4]&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;[/c]";
            }else if (barra==2){
                Messenger.MyPersonalMessage = "Cargando [c=3]&#9608;&#9608;&#9608;&#9608;[/c][c=4]&#9608;&#9608;&#9608;&#9608;[/c]";
            }else if (barra==3){
                Messenger.MyPersonalMessage = "Cargando [c=3]&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;[/c][c=4]&#9608;&#9608;[/c]";
            }else if (barra==4){
                Messenger.MyPersonalMessage = "Cargando [c=3]&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;&#9608;[/c][c=4][/c]";
            }
               MsgPlus.AddTimer("Cargando",500);
    }else if (http_request.readyState == 4) {
        if (http_request.status == 200) {
            Messenger.MyPersonalMessage = "[c=3]  &#9679;  [/c]Estado del Servidor: [c=3]  "+ web +": ·> OnLinE[/c]";       
        }else if (http_request.status == 404 || 503){
            Messenger.MyPersonalMessage = "[c=4]  &#9679;  [/c]Estado del Servidor: [c=4]  "+ web +": ·> OfLiNe[/c]";
        }else{
               Messenger.MyPersonalMessage = "[c=14]  &#9679;  [/c]Estado del Servidor:[c=14]  "+ web +": ·> Estado no Disponible[/c]";
        }
    MsgPlus.AddTimer("Recargar",120000);
    }
}





Thanks, Elliotmoso

This post was edited on 09-17-2007 at 04:33 PM by elliotmoso.
09-17-2007 04:06 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