FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

uTorrent interface
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Fri Apr 25, 2008 12:54 am    Post subject: uTorrent interface Reply with quote

[b]See included readme file for details.[/b]

Version 0.7 changelog

* Using cache-id for better performance
* Support for multiple devices (local and remote) plus new layout for config file
* Minor improvements
* Removed vbs installer

I did not test all functions in detail, especially focus download. Use those experimental features at your own risk.

Version 0.6 changelog

* Implementation of token system
* Keeping main list in ram; also prevents msxml error for large collections
* Lists sorted alphabetically
* Shutdown improved plus restoring settings on re-launch
* Major cleaning up

Version 0.5 changelog

* XML-Error if URI length exceeds limit
* Processing of strings with deviant chars fixed in titles and filelists
* Setting 'DHT' doesn't update on phone
* Shutdown depends on language setting
* Forced launch if uTorrent is not running
* Focus download 'dual-option' (option in main settings menu)
[Pause] All other items, started and queued, are paused
[Idle] DL speed for other items is set to zero
[Both] ForceStart focused item
* Restoring settings for focus download (cmds are saved to file)
* Plus minor improvements



utorrent_0.7.zip
 Description:
version 0.7 beta / may 2010

Download
 Filename:  utorrent_0.7.zip
 Filesize:  32.87 KB
 Downloaded:  1310 Time(s)



Last edited by joeker on Mon May 17, 2010 4:25 pm; edited 4 times in total
Back to top
View user's profile Send private message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Mon Aug 04, 2008 4:47 am    Post subject: new version v0.4 Reply with quote

--------------------------------------------------------
uTORRENT INTERFACE version 0.7 beta
--------------------------------------------------------

1 Requirements

- WinXP, may run on other OS
- uTorrent 1.6.1 or newer (developed with 2.0.2) plus working WebUI

See this guide for WebUI configuration:
http://www.utorrent.com/webui-guide.php

-----------------------------------------------------

2 Install

[1] Move folder to 'My Clicker Scripts' and add uTorrent to Clicker Items
[2] Edit uTorrent.ini according to uTorrent-WebUI config

[DEVICE]
id=description
app=path_to_exe
url=http://user:pass@location:port/gui/
-------------------------------------------------
<id>|<url> are required, <app> is optional and should only be set for local devices
For additional installations just insert a new block starting with [DEVICE]
-----------------------------------------------------

3 Features

- Monitor/Manage uTorrent on phone
- Monitor job status
- Status update every 10 sec (KeypadScreen)
- Basic torrent-control via KeySetup
- Launch/Close app for local installations
- Search torrent (match any substring)
- Filter by subcategories, label, status, etc.
- View/Modify main settings
- View/change additional torrent properties
- View filelist/file properties
- Change file priority (selected/all)
- Hide/Show app ("Boss key")
- Batch Actions [All items, by label, by status, Focus DL]
- Live-mode: Background logo (if supported) illustrating torrent status; item-name as title
- Graceful shutdown (will work for stable versions, else shutdown can be forced)


Last edited by joeker on Mon May 17, 2010 4:28 pm; edited 2 times in total
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Tue Aug 12, 2008 11:51 pm    Post subject: Reply with quote

I love the sound of this script...

I have WebUI working perfectly with my utorrent 1.7.7...

I have modified the .ini file as instructed...

Hoever when i try to launch the script from my phone I get this message on the phone:

"Config file not found. Please re-install!"

Any idea what could be happening?

Thanks so much :)
Back to top
View user's profile Send private message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Wed Aug 13, 2008 9:33 pm    Post subject: Reply with quote

Hey, this error indicates a problem locating the config file 'ut_interface.ini'.
What OS are you using?
Did you put the folder in 'My Clicker scripts' .. ut_interface.ini still there?
Please check for following key in your registry:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal
This should read something like "%USERPROFILE%\Eigene Dateien".

best.
joeker

[quote="kiboy6"]I love the sound of this script...

I have WebUI working perfectly with my utorrent 1.7.7...

I have modified the .ini file as instructed...

Hoever when i try to launch the script from my phone I get this message on the phone:

"Config file not found. Please re-install!"

Any idea what could be happening?

Thanks so much :)[/quote]
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Wed Aug 13, 2008 10:06 pm    Post subject: Reply with quote

Hi,

Thanks for getting back to me on this :)

I'm running xp sp3, with utorrent 1.7.7, and webUI working without a prob.

The utorrent folder is definitely within "my clicker scripts", and the correctly modified ut_interface.ini is within that folder.

I had a look at that registry key you mentioned. The value I have for that key is "D:\My Documents"

Could this be the problem? (Incidentally that is the correct location for my "My Documents" folder. I changed it from C: with TweakUI)

Any ideas?

Thanks so much!
Back to top
View user's profile Send private message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Thu Aug 14, 2008 12:37 am    Post subject: Reply with quote

no prob ;-)

Yeah, that's definitely causing the error (absolute path of My Documents instead of variable).
Best solution in your case is to move ut_interface.ini to the root dir (c:/, d:/,..) and modify a few lines in utorrent.js.
Please open with an editor and change
--------------
//read INI
var verify = fso.FileExists(USERPROFILE+P1+P2);
if( verify == true ) {
var ini = fso.OpenTextFile(USERPROFILE+P1+P2);
...
--------------
to
--------------
var verify = fso.FileExists('c:\\ut_interface.ini');
if( verify == true ) {
var ini = fso.OpenTextFile('c:\\ut_interface.ini');
...
--------------

Hope this helps!

best.
joeker


[quote="kiboy6"]Hi,

Thanks for getting back to me on this :)

I'm running xp sp3, with utorrent 1.7.7, and webUI working without a prob.

The utorrent folder is definitely within "my clicker scripts", and the correctly modified ut_interface.ini is within that folder.

I had a look at that registry key you mentioned. The value I have for that key is "D:\My Documents"

Could this be the problem? (Incidentally that is the correct location for my "My Documents" folder. I changed it from C: with TweakUI)

Any ideas?

Thanks so much![/quote]
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Thu Aug 14, 2008 10:00 am    Post subject: Reply with quote

Thanks...

I tried what you suggested, but now when I select utorrent in clicker nothing happens. (SC menu screen screen seems to refresh and that's it)

:?:

Thanks so much again :)
Back to top
View user's profile Send private message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Thu Aug 14, 2008 1:22 pm    Post subject: Reply with quote

sorry, it was late yesterday and I forgot to mention .. there's another file we have to point the script to (same problem with your modified reg-entry).

open utorrent.js in editor:
search for 'USERPROFILE+P1+P3' and replace all occurencies with 'c:\\_tlist'.
e.g. fso.DeleteFile(USERPROFILE+P1+P3, true) TO
fso.DeleteFile('c:\\_tlist', true)

this should work now, I've just tested it myself ;-)

best.
joeker

p.s. A more elegant solution which might also work:
-1- create new reg-entry 'utorrent' with value '%USERPROFILE%\My Documents' (according to your system config)
-2- open original utorrent.js and modify to
...
var P1 = wsh.RegRead("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\\utorrent");
...


[quote="kiboy6"]Thanks...

I tried what you suggested, but now when I select utorrent in clicker nothing happens. (SC menu screen screen seems to refresh and that's it)

:?:

Thanks so much again :)[/quote]
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Thu Aug 14, 2008 10:44 pm    Post subject: Reply with quote

Great...got it working now :) The first solution did the trick...tried the more elegant solution but no luck....


Really cool script...looking forward to the upcoming "batch actions" and "filter torrents by attribute" you mentioned in the readme.


In fact what I'm really looking forward to is a combination of the two...the ability to select all downloading torrents and then pause/unpause them.

This would allow me to focus on one download if i wanted it in a hurry, and then remotely restart al the others once it was done.


PS - as a convert to utorrent from azureus, i find the one and only thing i miss from my azureus days is the "focus download" plugin i used to use on azureus. This would pause all other torrent activity until the focused DL had completed, and then automatically unpause all the others as soon as it was done.

your script has almost got me back to that ability (albeit with a little more manual input, but WITHOUT having to go back to the PC), so thanks so much again!
Back to top
View user's profile Send private message
weasle1uk
Newbie


Joined: 01 Nov 2007
Posts: 3

PostPosted: Fri Aug 15, 2008 1:36 am    Post subject: Reply with quote

:D great script joeker
hope you dont mind i have been playing with the script
as i have moved "my documents" and got it working without moving the "ut_interface.ini" file if its ok with you i will post what i have done :D
Back to top
View user's profile Send private message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Fri Aug 15, 2008 9:00 pm    Post subject: Reply with quote

kiboy6, glad to hear it!
batch actions are on top of my agenda and will be part of next version. your suggestion 'focused torrent' sounds very interesting and would definitely be a nice addon .. may be feasible to include auto-resume upon completion, too.
.. so stay tuned ;-)

@weasle1uk. sure, looking forward to see your approach! I like the idea of putting files where they belong ..

best.
joeker
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Fri Aug 15, 2008 9:41 pm    Post subject: Reply with quote

[quote="joeker"]kiboy6, glad to hear it!
batch actions are on top of my agenda and will be part of next version. your suggestion 'focused torrent' sounds very interesting and would definitely be a nice addon .. may be feasible to include auto-resume upon completion, too.
.. so stay tuned ;-)
[/quote]


Wow...that sounds very exciting - if you really could replicate the "focused download" function with auto -resume it would be amazing....given that plugins aren't available for utorrent you would then actually be adding functionality to the program as well as making it remotely controllable!

Will definitely stay tuned! :)
Back to top
View user's profile Send private message
weasle1uk
Newbie


Joined: 01 Nov 2007
Posts: 3

PostPosted: Fri Aug 15, 2008 11:50 pm    Post subject: Reply with quote

ok heres what i did
in "utorrent.js" i changed the line that says
"var P1 = P1.replace(/%USERPROFILE%/g,"");"
and changed it to
"var P1 = P1.replace('e:\\');"
(my, my documents directory)
i then changed every instance of
"(USERPROFILE+P1+P2);"
to
"(P1+P2);"

it worked for me so i would guess it should work for others they just have to change
"var P1 = P1.replace(/%USERPROFILE%/g,"");"
to the directory of there My Documents

i just tried the same thing with your "AIO SleepTimer" and it worked for me
Back to top
View user's profile Send private message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Thu Nov 20, 2008 7:49 am    Post subject: new version 0.4 Reply with quote

----------------------------------------
UPDATE 20-NOV-08
----------------------------------------

.. see 2nd comment.

Edit:

First bug fixing ;)
Shutdown won't work for non-German language of uTorrent.

If you need this functionality please change line 1043 in utorrent.js:

SendVirtualKeystroke( 0x44, false, false, true, false ); //Alt+D
to
SendVirtualKeystroke( 0x46, false, false, true, false ); //Alt+F

and set uTorrent language to English (Options>Preferences>Language).
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Tue Nov 25, 2008 12:25 am    Post subject: Reply with quote

Wow...love the additions to this script..thanks so much :)

The focus download feature is amazing...just a a couple of questions on that:

1.) Would it be possible to change the setting so only all other [i]downloads[/i] are paused, as opposed to all other torrents (current behaviour).

2.) Don't suppose there'd be any chance of the auto-resume feature after a focused download that we mentioned above?

Thanks again for your awesome work on this :D
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group