Hey guys, I need some help with a couple of problems I'm having.
First, is that messenger keeps bringing up a box telling me "I've signed in as busy, do I want to change to Online" every single time I sign-on. I've changed the default status several times, but it still instantly makes me busy when I get online. It started happening after I copied a bit of script from a post by CookieRevised, to remember status by changing the sign-on status. This was when it started, but I don't think its the problem, because I've since deleted the entire key from the registry and its still happening.
My second problem is with a script. I've tried to add an update checker to it, adapted from mpscripts.net, but it won't work properly for me. Sometimes it works, sometimes it doesnt. Last time I looked, it wasn't coming up with anything. The Debug.Trace worked to show me the response text, but the versions just dont seem to compare. I double checked with the version numbers, but they just wont do anything. Can anyone give me any help with this? The ScriptVersion being used is 2.0.0.0 for the comparison to that site.
code:
function CheckforUpdates()
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET","http://www.arkanes-arkade.co.uk/XBMC-Script/Version.txt" , true);
xmlhttp.send(Math.round(Math.random()*99999));
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
{
var resp = xmlhttp.responseText;
Debug.Trace("Response = "+resp);
if(resp != "Current Version: " + ScriptVersion)
{
resp=resp.split(" ");
if(resp[2]>ScriptVersion)
{
MsgPlus.DisplayToast("XBMC", "Script Update Available!\nClick here to download now", "", "NewVersionAvailable");
}
}
}
xmlhttp.close;
}
}
Cheers guys