NIGathan commented on a Page, µTorrent WebUI mIRC Addon  -  Dec 27, 2008

Well, I went ahead and took a look myself, and I seemed to have fixed the majority of the problems. Only thing I couldnt figure out was how to set the position of the progress bar :/

Heres my modifications:

on *:SOCKREAD:ut: {
  var %x
  sockread %x
  ;write utordebug.txt %x
  if (*torrentc*:* iswm %x) {
    unset %ut.n
    set %at 1
    sockclose $sockname
  }
  if (%ut.n && %x) {
    write utorrent.temp $remove($gettok(%x,1,44),[,],") $gettok(%x,2 - $calc($numtok(%x,44) - 1),44) $+ , $+ $remove($gettok(%x,$numtok(%x,44),44),[,],")
    write utorrentnthash.temp $remove($gettok(%x,3,44),") $remove($gettok(%x,1,44),[,],")
    if ($dialog(ut)) {
      if (!%at) {
        xdid -a ut 1 0 0 + 0 0 0 0 0 0 $remove($gettok(%x,3,44),") $chr(9) + 0 0 0 0 $iif($gettok(%x,18,44) >= 1,$gettok(%x,18,44),*) $chr(9) + 0 0 0 0 $bytes($gettok(%x,4,44)).suf $chr(9) + 0 0 0 0 $ut.status($gettok(%x,2,44)) $chr(9) +p 0 0 0 0 DONE notheme $chr(9) + 0 0 0 0 $gettok(%x,15,44) ( $+ $gettok(%x,16,44) $+ ) $chr(9) + 0 0 0 0 $gettok(%x,13,44) ( $+ $gettok(%x,14,44) $+ ) $chr(9) + 0 0 0 0 $bytes($gettok(%x,10,44)).suf $+ /s $chr(9) + 0 0 0 0 $bytes($gettok(%x,9,44)).suf $+ /s $chr(9) + 0 0 0 0 $replace($duration($gettok(%x,11,44)),years,y,months,m,day,d,days,d,hrs,h,mins,m,secs,s)
      }
      else {
        xdid -v ut 1 %ut.n 1 $iif($gettok(%x,18,44) >= 1,$v1)
        xdid -v ut 1 %ut.n 2 $bytes($gettok(%x,4,44)).suf
        xdid -v ut 1 %ut.n 3 $ut.status($gettok(%x,2,44))
        ;xdid -v ut 4 $round($calc($gettok(%x,5,44) / 10),2)
        ;xdid -j ut 1 1 4 p
        ;xdid -i ut 1 4 % $+ d % $+ %
        xdid -v ut 1 %ut.n 6 $gettok(%x,13,44) ( $+ $gettok(%x,16,44) $+ )
        xdid -v ut 1 %ut.n 7 $bytes($gettok(%x,10,44)).suf $+ /s
        xdid -v ut 1 %ut.n 8 $bytes($gettok(%x,9,44)).suf $+ /s
        xdid -v ut 1 %ut.n 9 $replace($duration($gettok(%x,11,44)),years,y,months,m,day,d,days,d,hrs,h,mins,m,secs,s)
        ;xdid -v ut 1 10 $round($calc($gettok(%x,5,44) / 10),2)
      }
      xdid -v ut 1 %ut.n 5 $gettok(%x,15,44) ( $+ $gettok(%x,14,44) $+ )
      inc %ut.n
    }
  }
  if (*"torrents": [* iswm %x) {
    set %ut.n 1 
  }
}

It also uses $bytes with the .suf $prop so it will convert the bytes into their proper formatting. This removes the need for the $b2m identifier.

As you can see, I tried to figure out the progress bar, but just couldnt get it to work, so its all commented out. I also couldnt figure out what you were using the 10th thing for? Nothing seemed to change when I edited it.

Heres a screen of my modifications: http://i131.photobucket.com/albums/p299/NIGathan/utorrentmircaddon.png

It would be nice if you could add the ratio to it. To get that info merely: $round($calc($gettok(%input,7,44) / $gettok(%input,6,44)),3)

In this case %input would be %x

 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.