µTorrent WebUI mIRC Window (in main script)

By Jonesy44 on Dec 13, 2008

Introduction
This is an addon for the .. addon. uh yeah, works with the uTorrent WebUI script i released a day or so ago http://www.hawkee.com/snippet/5461/ this is the first release of it and i will be making it into a toolbar item soon and adding icons for pause/download etc.

Updates
Version 1.0

  • Initial script release

Screenshot
Image

; µTorrent Window by Jonesy44 =======;
; irc.chatscape.net // #chatscape ===;
; Version 1.0 =======================;
; ===================================;
; DO NOT EDIT ANYTHING IN THIS FILE==;
; UNLESS YOU KNOW WHAT YOU'RE DOING==;
; ===================================;
; You will need µTorrent open and ===;
; running with the webUI enabled. ===;
; You will also require the addon ===;
; for mIRC, which can be found at ===;
; http://www.hawkee.com/snippet/5461/;
; ===================================;
alias ut.window {
  window -pCk0ad +fbn @uTorrent -1 -1 256 $calc(24 + 32) images/utorrent.ico
  window -pCk0adh +fbn @uTorrent.buf -1 -1 256 $calc(24 + 32)
  ut.window.update
  .timerwindowut 0 1 ut.window.update
}
alias ut.window.update {
  ut.ref
  if (!%ut.windowhash) { set %ut.windowhash $$input(Please enter the hash for the torrent,eq,uTorrent - Info input) }
  var %hash = %ut.windowhash
  drawrect -f @uTorrent.buf 0 0 0 0 256 32
  drawtext -c @uTorrent.buf 6 Arial 11 1 1 240 11 $ut.getinfo(%hash,name)
  drawtext -c @uTorrent.buf 14 Arial 10 1 14 125 10 D: $+ $b2m($ut.getinfo(%hash,download_speed)) $+ /s U: $+ $b2m($ut.getinfo(%hash,upload_speed)) $+ /s
  drawrect @uTorrent.buf 14 1 129 15 112 10
  drawrect -f @uTorrent.buf 15 0 130 16 $round($calc(($ut.getinfo(%hash,downloaded) / $ut.getinfo(%hash,size)) * 110),0) 8
  drawtext -c @uTorrent.buf 1 Arial 10 175 14 30 10 $calc($ut.getinfo(%hash,percent) / 10) $+ %
  drawcopy @uTorrent.buf 0 0 256 32 @uTorrent 0 0
}
on *:close:@uTorrent: {
  if ($input(Would you like to open this torrent next time you use the uTorrent window?,yq,uTorrent - Option) == $yes) {
    unset %ut.windowhash
  }
  .timerwindowut off
  window -c @uTorrent.buf
}

Comments

Sign in to comment.
Jonesy44   -  Sep 13, 2011

Close, OS X :p

 Respond  
Virusless   -  Sep 13, 2011

That's alright. :) Thanks for your help though.
I trust you went over to the good Linux side? :P

 Respond  
Jonesy44   -  Sep 08, 2011

You'd need to ask this on the main script version, this was more of a side-project. Possibly even in the forums? I don't use Windows anymore, so I don't have mIRC installed anymore. Sorry.

FYI: It wouldn't be too hard to make. The main script downloads all of the current data in uT to a file (utorrent.temp, utorrentnthash.temp) and then the program reads the data from there. If you wrote a script to take the data from the file that would work. :)

Here's a link to the original script: http://www.hawkee.com/snippet/5461/

Sorry I couldn't be of more help!

 Respond  
Virusless   -  Sep 08, 2011

any chance of making a script that notifies (or pm's) the current list of torrents? I've got an mIRC bot and utorrent on a PC thats on 24/7 and i want to check the downloads via IRC. :) (if possible, only work when !torrents is noticed to bot)?

im not asking too much am I?

 Respond  
Jonesy44   -  Dec 16, 2008

i love friends :P thanks eugenio x]

 Respond  
Eugenio   -  Dec 16, 2008

rofl @ friends season 7
looks farking good tho =/

 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.