Shoutbox

[Release] uTorrentPSM - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Release] uTorrentPSM (/showthread.php?tid=72726)

[Release] uTorrentPSM by vikke on 03-16-2007 at 10:14 PM

Simple script.. Does show your current uTorrent DL/UL in your PSM.

Currently only works with 1.6 (latest). There is no reason to not have the latest one, it's best optimized.

Preview:
[Image: utorrentpsmie6.png]

Thanks to:
deAd: Some source sharing :)
Felu: Testing

Enjoy!


RE: [Release] uTorrentPSM by prashker on 03-16-2007 at 10:21 PM

All it shows is

"µTorrent 1.6.1"

Currently using 1.6.1 (Build 490)


RE: [Release] uTorrentPSM by vikke on 03-16-2007 at 10:24 PM

You will need to go to the uTorrent Preferences, under the "General"´ category, select the "Show current speed in titlebar" under the Display Options.

vikke


RE: [Release] uTorrentPSM by prashker on 03-16-2007 at 10:26 PM

Oh, there we go ;-).

(y) Very good.

Maybe an option to enable and disable and return to original PSM.


RE: [Release] uTorrentPSM by vaccination on 03-16-2007 at 10:52 PM

How about showing what your actually downloading?

Though this could make the psm quite long so you could cut the title of what you're downloading off after x many of characters.

So like "SonicSam_sex_vid... - D:52.3k U:23.4k - µTorrent 1.6.1"


RE: [Release] uTorrentPSM by Voldemort on 03-16-2007 at 10:57 PM

How frequently is it updated?


RE: [Release] uTorrentPSM by Felu on 03-17-2007 at 01:26 AM

quote:
Originally posted by Voldemort
How frequently is it updated?
As per the source code, every 2 Seconds.

@vikke: How about something which doesn't read the title bar and really gets the information from µTorrent :P?
RE: [Release] uTorrentPSM by Voldemort on 03-17-2007 at 01:27 AM

I don't think contacts will see the change, as the PSM is not updated as fast as the nickname, afaik.


RE: [Release] uTorrentPSM by MeEtc on 03-17-2007 at 02:32 AM

2 second update is WAAAY too often. I would recommend changing it to at least every minute. Is it really necessary to have it constantly update like that?


RE: [Release] uTorrentPSM by prashker on 03-17-2007 at 02:42 AM

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.

RE: [Release] uTorrentPSM by ddunk on 03-17-2007 at 02:51 AM

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.
RE: [Release] uTorrentPSM by WDZ on 03-17-2007 at 03:47 AM

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? :-/


RE: [Release] uTorrentPSM by -dt- on 03-17-2007 at 04:09 AM

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 :(
RE: [Release] uTorrentPSM by ddunk on 03-17-2007 at 04:26 AM

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.

RE: [Release] uTorrentPSM by WDZ on 03-17-2007 at 05:49 AM

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:
RE: [Release] uTorrentPSM by vikke on 03-17-2007 at 06:37 AM

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.


RE: [Release] uTorrentPSM by vaccination on 03-17-2007 at 08:30 AM

quote:
Originally posted by vikke

vaccination, what about multiple downloads at same time then?


hmm, maybe just display torrent #1 in the list? *-)
RE: [Release] uTorrentPSM by Silentdragon on 03-17-2007 at 08:32 AM

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.
RE: [Release] uTorrentPSM by vikke on 03-17-2007 at 09:46 AM

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.


RE: [Release] uTorrentPSM by prashker on 03-17-2007 at 03:30 PM

You forgot the description.


RE: [Release] uTorrentPSM by vikke on 03-17-2007 at 03:39 PM

Does it matter?
Will update tonight.

vikke


RE: [Release] uTorrentPSM by prashker on 03-17-2007 at 03:42 PM

quote:
Originally posted by vikke
Does it matter?
Will update tonight.

vikke

No, but fixing Sync does :cheesy:

* prashker runs <3.
RE: RE: [Release] uTorrentPSM by vikke on 03-17-2007 at 06:09 PM

quote:
Originally posted by SonicSam
quote:
Originally posted by vikke
Does it matter?
Will update tonight.

vikke

No, but fixing Sync does :cheesy:

* SonicSam runs <3.

I know. I'm going to freakin finish it.
|-)
RE: [Release] uTorrentPSM by Supersonicdarky on 03-17-2007 at 07:18 PM

i think you mean to put "miliseconds" instead of "seconds" in the config window...


RE: [Release] uTorrentPSM by vikke on 03-17-2007 at 07:29 PM

It does say ms here. Updated, with derscription.

Thanks, vikke


RE: [Release] uTorrentPSM by EBFL on 03-18-2007 at 04:32 PM

Maybe get this to work with other programs p2p like BitComet or even Limewire..?


RE: [Release] uTorrentPSM by MeEtc on 03-18-2007 at 05:54 PM

I am finding this script very annoying. Its clogging my event viewer with all the PSM changes from other people. Any chance of setting the refresh a lot higher?


RE: [Release] uTorrentPSM by vikke on 03-18-2007 at 05:56 PM

The user can decide in current version.

vikke


RE: [Release] uTorrentPSM by Oxy on 08-29-2007 at 01:56 PM

Bump.
Any chance for update to 1.7.X?


RE: RE: [Release] uTorrentPSM by Aeryn on 08-29-2007 at 02:16 PM

quote:
Originally posted by Lukas
Bump.
Any chance for update to 1.7.X?

I just tried it with 1.7.2, it works nicely with it.
RE: [Release] uTorrentPSM by Oxy on 08-29-2007 at 02:26 PM

quote:
Originally posted by Haz
I just tried it with 1.7.2, it works nicely with it.
Doesn't here :/ I get
quote:
orrent - uTorrent 1.7.2

EDIT:
Windows Vista Ultimate (6.0.6000)
Windows Live Messenger 8.1.0178
Messenger Plus! Live 4.23.0.276
uTorrent 1.7.2
RE: RE: [Release] uTorrentPSM by Aeryn on 08-29-2007 at 04:11 PM

quote:
Originally posted by Lukas
quote:
Originally posted by Haz
I just tried it with 1.7.2, it works nicely with it.
Doesn't here :/ I get
quote:
orrent - uTorrent 1.7.2

EDIT:
Windows Vista Ultimate (6.0.6000)
Windows Live Messenger 8.1.0178
Messenger Plus! Live 4.23.0.276
uTorrent 1.7.2



You probably need to do this:

quote:
Originally posted by vikke
You will need to go to the uTorrent Preferences, under the "General"´ category, select the "Show current speed in titlebar" under the Display Options.

vikke



Edit:
quote:
Originally posted by Lukas
I thought i missed something, ta. :wink:

Glad it helped. :)
RE: [Release] uTorrentPSM by Oxy on 08-29-2007 at 04:36 PM

I thought i missed something, ta. :wink:


RE: [Release] uTorrentPSM by vikke on 09-16-2007 at 08:09 PM

After my current projects, I will work on getting more information than ever from uTorrent! Expect something big.


RE: [Release] uTorrentPSM by prashker on 09-16-2007 at 08:12 PM

dt beat you to it :cheesy:


RE: RE: [Release] uTorrentPSM by vikke on 09-16-2007 at 08:13 PM

Hah, I will use another method. Let's see how it turns out. :)


RE: [Release] uTorrentPSM by pauloslash on 12-10-2007 at 03:53 AM

[Image: imagemob4.png]
it exists?