In this article I would like to:1) Share with you your find: a program that allows you to change the speed of the popular torrent client
utorrent via command line parameters.
2) Show a live example of using this program (using the
nncron scheduler ).
Prehistory:Some time ago I wanted to, in my absence at the computer, utorrent could fully occupy the channel, and in my arrival would reduce my appetites, so that I could use the Internet comfortably.
I did not find such user tracking settings in utorrent itself, and moreover, I was surprised to find that the client’s favorite torrent does not have the ability to control the download / upload speed via command line parameters.
However, having searched the Internet, I could still find a program, which compensates for this
lack of functions:
utspeed (v1.0.1.1).
There is a version posted on
the developer’s website that can control the speed using the interface of the built-in utorrent web server. Those. we run this program with the necessary parameters - and it, momentarily, through the loop of the local host sends these parameters to the web interface, to which, again, our utorrent responds momentarily.
')
But here’s an example of how to automate switching speeds when a computer is idle using the excellent
nncron scheduler (I originally wrote instructions for solving the stated problem for the scheduler built into XP, but did not find it possible to return parameters when the user arrived, stopped at
nncron ).
0. during all manipulations utorrent must be running.
1. Download the
archive with the program v 1.0.1.1 ;
2. Unpack to any convenient folder - I threw the whole thing into a folder with utorrent (you can put the contents of the archive where it is more convenient for you - the functionality will not suffer);
3. In the settings of the utorrent we turn on the web-interface (set a daw, click ok)
Optionally correct default data. But it is not necessary to do this, because according to them, access is allowed only from localhost, respectively, remote attackers will not be able to steer our torrents. If the default data in utorrent is corrected - you need to change the corresponding fields in the settings file in the text editor - utspeed.ini

4. Create a task in nncron:
#
( TorrentMonitoring
Action:
\ user 16.6 ...
IDLE: 1000
IF
\ -
FILE-EXIST: "c:\tc\Utils\uTorrent\SpeedUp.flag"
IF
ELSE
\ ,
FILE-CREATE: "c:\tc\Utils\uTorrent\SpeedUp.flag"
StartIn: "c:\tc\Utils\uTorrent\"
SWHide NormalPriority
\ -
START-APP: c:\tc\Utils\uTorrent\utspeed.exe /max_dl_rate 1000 /max_ul_rate 1000
THEN
THEN
\ user ,
IDLE: 10
IF
ELSE
\ - -
FILE-EXIST: "c:\tc\Utils\uTorrent\SpeedUp.flag"
IF
\ - ..
FILE-DELETE: "c:\tc\Utils\uTorrent\SpeedUp.flag"
StartIn: "c:\tc\Utils\uTorrent\"
SWHide NormalPriority
\ -
START-APP: c:\tc\Utils\uTorrent\utspeed.exe /max_dl_rate 50 /max_ul_rate 50
THEN
THEN
)#
* note - c: \ tc \ Utils \ uTorrent \ path - replace with the path where you unpacked the contents of the archive.
** note 2 - the code tag ate all spaces. You can download the formatted text of the script
from here .
That's all, after 17 minutes after we do not show any activity on the computer - utorrent turns on the download / upload speed of 1000 kb / s. Within a minute, after the activity appeared - the speed is limited to 50 kbyte / s.
Afterword:The program allows you to change other parameters utorrent. You can read more about this by reading the readme.txt.
Also, the utspeed distribution contains an already written script (utspeed.au3 file) for the
autoit! Its functionality is similar to the script I wrote for nncron.
However, you can get by with the built-in Windows scheduler.
PS For Vista users, use nncron version
1.93b3