What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Tutorial: Script update checking

Tutorial: Script update checking
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Tutorial: Script update checking
Sorry stiggy but that code needs to be optimised.
code:
function CheckForUpdates(foo)
{
var xmlhttpup = new ActiveXObject("MSXML2.ServerXMLHTTP");
xmlhttpup.open("GET", "http://www.msgpluslive.net/scripts/view/309-Myspace-Manager/",true);
xmlhttpup.onreadystatechange=function() {
  if (xmlhttpup.readyState==4) {
  var ver = RegExp('<span class="largefilename">Myspace Manager(.*)</span><br />','i').exec(xmlhttpup.responseText);
    ver = ver[1];
    Debug.Trace('Ver On Server: ' + ver + ' - Ver On Disk: ' + MyVer);
    if(ver > MyVer){ Toast('New Version Available!\r\n\r\nClick here to download');}
    else if(foo){Toast('No New Updates Available!');}
  }
}
xmlhttpup.send(null);
}
I'll admit to not testing this before posting but it does look a lot nicer doesn't it?

Anyway, I like to make t ext file and check the build number against the number in there personally, but it wasn't a bad read.  I think any of us who do a lot of scripting ill probably use our own methods for this kind of thing but it will definitely be nice for the new scripters to have this functionality as well.
[Image: markee.png]
11-11-2007 11:42 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Tutorial: Script update checking - by -dt- on 11-11-2007 at 09:55 AM
RE: Tutorial: Script update checking - by Felu on 11-11-2007 at 10:03 AM
RE: Tutorial: Script update checking - by Matti on 11-11-2007 at 10:20 AM
RE: Tutorial: Script update checking - by user13774 on 11-11-2007 at 10:33 AM
RE: Tutorial: Script update checking - by -dt- on 11-11-2007 at 10:41 AM
RE: Tutorial: Script update checking - by Menthix on 11-11-2007 at 11:03 AM
RE: Tutorial: Script update checking - by Dempsey on 11-11-2007 at 05:03 PM
RE: Tutorial: Script update checking - by Rolando on 11-11-2007 at 05:08 PM
RE: Tutorial: Script update checking - by roflmao456 on 11-11-2007 at 09:37 PM
RE: Tutorial: Script update checking - by Quantum on 11-11-2007 at 10:00 PM
RE: Tutorial: Script update checking - by -dt- on 11-11-2007 at 10:38 PM
RE: Tutorial: Script update checking - by Stigmata on 11-11-2007 at 11:08 PM
RE: Tutorial: Script update checking - by markee on 11-11-2007 at 11:42 PM
RE: Tutorial: Script update checking - by -dt- on 11-12-2007 at 12:03 AM
RE: Tutorial: Script update checking - by Lou on 11-12-2007 at 02:04 AM
RE: Tutorial: Script update checking - by Volv on 11-12-2007 at 02:18 AM
RE: Tutorial: Script update checking - by Patchou on 11-12-2007 at 04:22 AM
RE: Tutorial: Script update checking - by NanaFreak on 11-12-2007 at 05:56 AM


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