What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Req] Touch/ping a URL

[Req] Touch/ping a URL
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Req] Touch/ping a URL
Changed the parts below to remove sending the statuses and email address to the server. Now it's just a "ping" :-)

code:
function OnEvent_Signin(Email)
{
  //Status Change is not called when we sign in so here's a seperate function to ping when we sign in.
  //Removed sending the status, just a ping is good.
  ping();
}

function OnEvent_MyStatusChange(NewStatus)
{
  //Ping the server.
  ping();
}

function ping()
{
  //Here we will be sending the actual pings.
  var link;
  //Create a so called foreach loop to loop trough all the servers in the array.
  for (link in linkarr)
  {
    //Debug.Trace("  linkarr::linkarr[" + link + "] = "  +linkarr[link]);
      //Open a connection to the server.
    xmlhttp.open("GET", linkarr[link], true);
    //Send nothing, this just creates the actual connection to the server and the params are send as GET params.
    xmlhttp.send();
  }
}

To add things like a ping on signout just add the correct Events and call the ping function from there.
[Image: 1-0.png]
             
05-30-2007 10:47 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Req] Touch/ping a URL - by MeEtc on 05-28-2007 at 10:45 PM
RE: [Req] Touch/ping a URL - by Dennis Mike on 05-28-2007 at 10:54 PM
RE: [Req] Touch/ping a URL - by Ezra on 05-30-2007 at 06:09 PM
RE: [Req] Touch/ping a URL - by MeEtc on 05-30-2007 at 08:26 PM
RE: [Req] Touch/ping a URL - by Ezra on 05-30-2007 at 10:47 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