What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] uTorrentPSM

Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
[Release] uTorrentPSM
Author: Message:
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: [Release] uTorrentPSM
quote:
Originally posted by SonicSam
quote:
Originally posted by Felu
@vikke: How about something which doesn't read the title bar and really gets the information from µTorrent

ddunk tried this before, incredible lag if I recall.
Around 20 seconds to decode a resume.dat with 20 or so torrents in it. If someone can figure out a decent method, it'd be a great script, but have fun trying to do so.
03-17-2007 02:51 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [Release] uTorrentPSM
Hmm... I just decoded a resume.dat with 87 torrents in 0.1572 seconds using PHP. :p

It doesn't contain any upload/download speeds though (as far as I can tell).

Maybe you could use the uTorrent WebUI as a sort of API? Is that included in 1.6.1 Stable or only the beta? :-/
03-17-2007 03:47 AM
Profile PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: [Release] uTorrentPSM
quote:
Originally posted by WDZ
Hmm... I just decoded a resume.dat with 87 torrents in 0.1572 seconds using PHP. :p

It doesn't contain any upload/download speeds though (as far as I can tell).

Maybe you could use the uTorrent WebUI as a sort of API? Is that included in 1.6.1 Stable or only the beta? :-/
its in mine which is the stable one, so i guess so

also the speed depends on how many torrents you have loaded, 1-5 is normally fastish but if you have say 37 or so loaded like me its quite slow :(
[Image: dt2.0v2.png]      Happy Birthday, WDZ
03-17-2007 04:09 AM
Profile PM Web Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: [Release] uTorrentPSM
quote:
Originally posted by WDZ
Hmm... I just decoded a resume.dat with 87 torrents in 0.1572 seconds using PHP. :p

It doesn't contain any upload/download speeds though (as far as I can tell).

Maybe you could use the uTorrent WebUI as a sort of API? Is that included in 1.6.1 Stable or only the beta? :-/
I tried that too and gave up, packet sniffing didn't work because the data is sent encoded and the javascript used is completely obfuscated.

The Javascript decoding functions we played with were taken from the attached file, via the Samurize script that was put out for utorrent.

.txt File Attachment: uTorrentMonitor.txt (30.46 KB)
This file has been downloaded 321 time(s).
03-17-2007 04:26 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [Release] uTorrentPSM
Hacked the code a bit, threw some debug timers in there, then executed it with WSH...

---------------------------
Windows Script Host
---------------------------
File loading time: 0 ms, Unicode time: 31672 ms, BDecode time: 312 ms, Total time: 32063 ms


The actual BDecoding seems quite efficient, the bottleneck is this dodgy Unicode conversion code...

code:
// Split the 2 bytes for each Unicode char and add them to an array. Convert both bytes from a charcode to a character.
var UInt8Array = [],charCode;
while(unicodeString.length){
    charCode = unicodeString.charCodeAt(0);
    UInt8Array.push(String.fromCharCode(charCode&255),String.fromCharCode(charCode>>8));
    unicodeString = unicodeString.substr(1);
}
Here's a forum post where the author asks for help with that: http://www.ozoneasylum.com/27909 :zippy:
03-17-2007 05:49 AM
Profile PM Web Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
O.P. RE: [Release] uTorrentPSM
I could use pure Win32 APIs to get the information right from the uTorrent window. However, that is also limited, but I can get some more information.

I think 2 seconds is ok, because you will see the changes all the time, but not your contact, she/he will only see them like once in 10 seconds. If I would have 10 seconds timers, there would be too much change between each time.

I'm working on something, but it's not decrypting resume.dat as that would be too slow..

vaccination, what about multiple downloads at same time then?

WDZ: I'll check into WebUI.

Thanks for your feedback.

This post was edited on 03-17-2007 at 06:37 AM by vikke.
4 8 15 16 23 42
03-17-2007 06:37 AM
Profile E-Mail PM Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: [Release] uTorrentPSM
quote:
Originally posted by vikke

vaccination, what about multiple downloads at same time then?


hmm, maybe just display torrent #1 in the list? *-)
[Image: jumbled.png]
03-17-2007 08:30 AM
Profile PM Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [Release] uTorrentPSM
code:
var wString = Interop.Allocate((unicodeString.length*2));
    var mbString = Interop.Allocate((unicodeString.length));
    mbString.WriteString(0,unicodeString);
    Interop.Call("Kernel32","MultiByteToWideChar", 65001, 0x8, mbString, unicodeString.length, wString, wString.Size);
That'll do your conversions for you, however wString.ReadString(0) doesn't read it all, stopping at null characters. I dunno if they are supposed to be there or not, the strings I get back look exactly like what the makeshift conversion gives me. Don't have time to mess around more, so see what you guys can do with it.

This post was edited on 03-17-2007 at 08:33 AM by Silentdragon.
03-17-2007 08:32 AM
Profile E-Mail PM Web Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
O.P. RE: [Release] uTorrentPSM
Update: 1.1

Changelog:
* Interface (Setting window)
* You can now change update speed
* You can now format your PSM your own way, with %D and %U as tags.

Download: Check main post.
4 8 15 16 23 42
03-17-2007 09:46 AM
Profile E-Mail PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
RE: [Release] uTorrentPSM
You forgot the description.
03-17-2007 03:30 PM
Profile PM Find Quote Report
Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On