2011-02-27, 02:50
I have been wondering for some time now on how to make utorrent do this
Thanks!
As for the vbscript erroring out when xbmc is not running, I might have an idea.
I don't know vbscript at all, I'm a php programmer myself
From what I can Google, I think this might check the connection every 30 seconds
This will keep waiting until the returned status is 200 (good url)
Maybe put the status into a variable and not run the update code below if it fails after 2 minutes.
I'm sure someone that knows vbscript better can do better than this. I'm going to keep messing with this and checking to see if I can figure this out better.
Thanks!
As for the vbscript erroring out when xbmc is not running, I might have an idea.
I don't know vbscript at all, I'm a php programmer myself
From what I can Google, I think this might check the connection every 30 seconds
Code:
'Check the connection, see if xbmc is running
objSvrHTTP.open "GET", xbmcConnection, False
objSvrHTTP.send
While objSvrHTTP.Status <> 200
'Wait 30 seconds to try again
WScript.Sleep 1000 * 30
Wend
Maybe put the status into a variable and not run the update code below if it fails after 2 minutes.
I'm sure someone that knows vbscript better can do better than this. I'm going to keep messing with this and checking to see if I can figure this out better.