Sign in to follow this  
Followers 0
AetherMaster

Checking for updates

3 posts in this topic

Hello, I have a question for you all.

Is there a way to make a script check a version number (let's say it's from mywebsite.com/version.txt) and compare it to a variable in the script (let's say that it's $myversion = "2.0"), then have a dialog box come up if there is a newer version online?

Share this post


Link to post
Share on other sites



Hello, I have a question for you all.

Is there a way to make a script check a version number (let's say it's from mywebsite.com/version.txt) and compare it to a variable in the script (let's say that it's $myversion = "2.0"), then have a dialog box come up if there is a newer version online?

Something like this?

;you may want this at the start of the script.

Local $currentver = "1"

InetGet ("mywebsite.com/version.txt",@ScriptDir & "\version.txt")
$latestver = FileRead(@ScriptDir & "\version.txt")
FileDelete(@ScriptDir & "\version.txt")
If $latestver > $currentver Then _downloadnewver()

Func _downloadnewver()
    ;insert script here
EndFunc

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites

Yes, that'll work great! Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0