This snippet will check your mIRC version and compare it to current "mIRC webiste"'s one.
If you need upgrade, you will get an option to do so.
Usage: any popup
menu * {
Check mIRC version: sockclose mirc | sockopen mirc www.mirc.com 80
}
on *:SOCKOPEN:mirc: {
sockwrite -n mirc GET / HTTP/1.1
sockwrite -n mirc Host: www.mirc.com
sockwrite -n mirc Connection: Keep-Alive
sockwrite -n mirc $crlf
}
on *:SOCKREAD:mirc: {
var %t has been <a href="news.html">released</a>.
sockread %tmp
if (%t isin %tmp) {
if ($version < $right($gettok(%tmp,2,32),-1)) {
.echo -a Upgrade is needed! Your mIRC version is $version $+ , and newest one is $gettok(%tmp,2,32) $+ !
dialog $iif($dialog(upgrade),-v,-dm) upgrade upgrade
sockclose mirc
}
else echo -a Your mIRC version is ok.
sockclose mirc
}
}
dialog upgrade {
title "mIRC Upgrade"
option dbu
size -1 -1 100 40
text "Would you like to upgrade now?", 1, 5 5 110 10
button "Yes", 2, 15 20 20 10
button "No", 3, 65 20 20 10
}
on *:dialog:upgrade:*:*: {
if ($devent == sclick) {
if ($did == 2) { run www.mirc.com/get.php | dialog -x upgrade }
if ($did == 3) { dialog -x upgrade }
}
}
sk68, you're making an ambiguous reply. > Its pretty obvious theres an update out there <- It's also obvious that some people don't bother checking if there's an update for mirc. And mirc can be download from various sources, either new or old version.> considering some scripts specify they were made for later versions >.> <- Not necessarily true. Some scripts don't indicate a check for if ($version >= 6.32) { or above for instance.
I think this feature has been implemented since version 6.32
If you are using version 6.32 or above, you can look at mirc's menu bar, locate 'Help' to your far right hand side, drop it down to 'Check for Updates'...and voila. While it checks for update, a pop-up dialog will show to inform you if a latest update is available, along with an option that says 'Automatically check for updates,' which is located at the left corner. You can either tick it for automatic checking or do it manually.