mIRC version checker

By XperTeeZ on Jul 28, 2009

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 }
  }
}

Comments

Sign in to comment.
sk68   -  Jul 29, 2009

thats why I said some, not all, and anyone who isnt aware that theres a version higher than 6.31 probably doesnt need a version checker anyway because they either dont care about or dont need updates

 Respond  
Jethro   -  Jul 29, 2009

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.

 Respond  
sk68   -  Jul 29, 2009

why do you need an update checker for 6.31? Its pretty obvious theres an update out there considering some scripts specify they were made for later versions >.>

 Respond  
XperTeeZ   -  Jul 29, 2009

hmmm... so thats why I made this addon for ppl like me, who're still using 6.31 XD

 Respond  
tv3636   -  Jul 28, 2009

I know, Jethro_ already covered that

 Respond  
knoeki   -  Jul 28, 2009

//echo -a $version

That only shows your version, not if there's an update available.

 Respond  
tv3636   -  Jul 28, 2009

//echo -a $version

 Respond  
Jethro   -  Jul 28, 2009

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.

 Respond  
XperTeeZ   -  Jul 28, 2009

hmm... It never upgraded to me... Is it the newest feature or?

 Respond  
knoeki   -  Jul 28, 2009

No... I meant that mIRC itself has this feature built in...

 Respond  
knoeki   -  Jul 28, 2009

Uhm... right... because mIRC totally doesn't have this feature already.

 Respond  
XperTeeZ   -  Jul 28, 2009

I saw there was already one mIRC checker but it read from "old" mIRC website, and since I saw no other checkers, I decided to post this one :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.