What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Is there a way for me to check for updates?

Is there a way for me to check for updates?
Author: Message:
Jacen
New Member
*


Posts: 8
Joined: May 2007
O.P. Is there a way for me to check for updates?
I'm just wondering if theres an easy way for my script to check for updates to itself?
05-05-2007 10:17 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Is there a way for me to check for updates?
Sure, have your script use the Microsoft.XMLHTTP activex object to connect to the internet and download a page or file that contains update information (an XML file works nicely, but other things will work too).

Here's an example of downloading a web page with XMLHTTP:
http://shoutbox.menthix.net/showthread.php?tid=56...d=617138#pid617138

You can also look at the source of any existing script that checks updates ;)
05-05-2007 10:54 PM
Profile PM Find Quote Report
Jacen
New Member
*


Posts: 8
Joined: May 2007
O.P. RE: Is there a way for me to check for updates?
So, to get the updated version I should do this

replace
Debug.Trace(xmlhttp.responseText);

with
version = xmlhttp.responseText;? I have a text file thats on my site that the only content in the file is the version number so... Would that place the version number into a varable where I can then use a IF statement to check?
05-06-2007 12:55 AM
Profile E-Mail PM Find Quote Report
Jacen
New Member
*


Posts: 8
Joined: May 2007
O.P. RE: Is there a way for me to check for updates?
Don't know what the forum rules about bumping are, but I need an answer :)
05-06-2007 04:50 PM
Profile E-Mail PM Find Quote Report
joey
Senior Member
****

Avatar
Epoc Faileur.

Posts: 734
Reputation: 26
34 / Other / Flag
Joined: Dec 2006
RE: Is there a way for me to check for updates?
the rules are "dont bump or you die.(in a very serious tone.)"

and why not just try it, see if it works, whats the worsta that can happen?

Break my heart all you want, i'm on the NHS.
ever wondered what it's like to ejaculate through your ears...? ;o
05-06-2007 05:35 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Is there a way for me to check for updates?
quote:
Originally posted by Jacen
Don't know what the forum rules about bumping are, but I need an answer :)
Bumping is only allowed after a few days

quote:
Originally posted by Jacen
So, to get the updated version I should do this

replace
Debug.Trace(xmlhttp.responseText);

with
version = xmlhttp.responseText;? I have a text file thats on my site that the only content in the file is the version number so... Would that place the version number into a varable where I can then use a IF statement to check?
yes that will work, but note that the variable version will be a string, not a number. So be carefull when you use comparisson operators. See the next links for more info on that:
CookieRevised's reply to Script about lock messenger
CookieRevised's reply to Nudges, Updated.

Also note that this whole routine is not instant; it runs asyncronically. Thus it can be a while (as in seconds) before anything is returned. So you also better include a time-out meganism.

Complete examples can be found in several scripts. I suggest you take a look at the bundled scripts which comes with the newest Messenger Plus! Live. For example the Now Playing script.

This post was edited on 05-06-2007 at 08:50 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-06-2007 08:34 PM
Profile PM 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