jmclaren7 Posted April 5, 2008 Report Share Posted April 5, 2008 This is a commandline drivin AutoIt script to help control the speed limits and other settings of uTorrent for the purpose of advance scheduling or automation when used with winodws task scheduler, batch files, shortcuts or another program.Download: http://teammc.cc/utorrent==========About============Welcome To TeamMC!!! WebSite: http://TeamMC.ccE-Mail: john@teammc.ccProgram WebSite: http://teammc.cc/utorrentProgram Version: 1.1.0.0 / 20100208Related Project: uTorrent LanManager (http://teammc.cc/utorrent - http://forum.utorrent.com/viewtopic.php?pid=391389)uTorrent Website: http://www.utorrent.comuTorrent Project Topic: http://forum.utorrent.com/viewtopic.php?id=38511uTorrent Version: 1.8.x to 2.1.0If You Dont Know About AutoIT Check It Out At http://autoitscript.com==========Files============utspeed.exe - The program executable, execute this with parameters to adjust the settings of utorrent.utspeed.ini - (Optional) This is the settings INI file, its name should be the same as the above exe file except with the ini extention, this file is optional, the user/pass/ip/port can be placedin the command line.utspeed-test.bat - (Testing File) An example of how to use utspeed.exe, this example requires you to configure the INI file first.Folder "src" - (Source Files) These are the source files.=====uTorrent Settings=====uTorrents WebUI needs to be enabled before the use of this application, to do this:1) Goto the settings menu and click on the Web UI option.2) Check 'Enable Web UI' and configure a Username and Password3) Check 'Alternative Listening Port' and change the port to something random (8080 is often fine but a 'first stop' for an attacker)4) Click Ok and then use the same settings when you use utspeed.exe, the host will be the address of the computer with uTorrent (localhost for the same computer)==========Usage============When you execute utspeed.exe and a settings INI file doesnt exist, just include the settings in the command line: utspeed.exe /user admin /pass 1234 /ip 192.168.0.1 /port 8900 /max_dl_rate 300 /max_ul_rate 20 /conns_globally 230Or If the INI file is setup with the proper host/port and user/pass then you dont need to include them in the command line: utspeed.exe /max_dl_rate 300 /max_ul_rate 20 /conns_globally 230Note: switches are passed "raw" to uTorrents WebUI, so no error checking exists, currently only "setsetting" type options will workSome Switches:/user/pass/ip/port/max_ul_rate/max_dl_rate/conns_globally/conns_per_torrent/sched_enable 1/0/sched_ul_rate/sched_dl_rate/max_active_torrent/max_active_downloads==========Changes==========v1.1.0.0*Added: Token Auth Support!*Changed: Error messages will once again stop the script, but will timeout and continue again after 5 minutes*Chnaged: A few readme updatesv1.0.2.0*Changed: Tweaked ReadMe*Fixed: Error Messages No Longer Stop The Program From Continuing*KNOWN ISSUE: Token_auth unsupportedv1.0.1.0*Changed: Updated instruction*Changed: Minor code tweaksv1.0.0.0*Added: WebUI Functionality*Added: Load WebUI Address/Port/UserName/Password From Command Line Or .INIv0.8.0.0*Version Using Direct Control Of uTorrent Being The Last Version To Not Use The WebUI Link to comment Share on other sites More sharing options...
jewelisheaven Posted April 5, 2008 Report Share Posted April 5, 2008 No Way!Awww, it only messes with those two preferences... I was hoping you made it configurable for different things which aren't already implemented in the scheduler, like connections per torrent and global. It's still useful for people who... want to change their limits on the fly I guess and don't want to use the tray icon or the main GUI. Thanks for making the utility available Link to comment Share on other sites More sharing options...
jmclaren7 Posted April 5, 2008 Author Report Share Posted April 5, 2008 ok i can see that being usefull.. yeah ok, any other ideas? ill work on it tonight/tomorow Link to comment Share on other sites More sharing options...
GTHK Posted April 5, 2008 Report Share Posted April 5, 2008 I wont actually use it, but as a suggestion, change upload slots as well? I think, a change in upload should be accompanied by a change in slots. I've heard µT prevents terrible upload slotting, but I don't know to what extent. The schedular used to do this, I have to wonder why it was removed.. Link to comment Share on other sites More sharing options...
jewelisheaven Posted April 5, 2008 Report Share Posted April 5, 2008 Do you know what version off hand.. I'm too tired to open up all 16 versions of uT to find it?? Link to comment Share on other sites More sharing options...
GTHK Posted April 5, 2008 Report Share Posted April 5, 2008 Are you saying it wasn't intentional? In that case, maybe it was like the case of the missing verbosity in the RSS logging. One moment...Sorry, I can't find it, I think it may have been a 1.6-1.7 beta build or something. Link to comment Share on other sites More sharing options...
jewelisheaven Posted April 5, 2008 Report Share Posted April 5, 2008 I don't see any changes is all:(build 402) - Change: Scheduler limit doesn't apply if in turn-off mode.(build 402) - Feature: Setting to enable/disable DHT when scheduler turns off.(build 411) - Fix: Stop ALL torrents when scheduler is active.(build 417) - Feature: Added scheduler mode to seed only (hold Shift button)(build 431) - Feature: Added popup menu to easily change if the scheduler/dht is enabled.(build 453) - Feature: Enable scheduler from tray(build 463) - Fix: Shift+Click now works properly in scheduler. Link to comment Share on other sites More sharing options...
GTHK Posted April 5, 2008 Report Share Posted April 5, 2008 Yeah, it's wierd, I burned through most of the builds on filehippo and couldn't find it. Keep in mind that the change logs aren't always complete :/. Side note, my connecting to some sites problem is getting really bad, especially this forum, I'm gonna need to make a call . Link to comment Share on other sites More sharing options...
jmclaren7 Posted April 5, 2008 Author Report Share Posted April 5, 2008 added those new options, let me know if its any goodthis topic doesnt seem popular or atleast no one is finding it, but if anyone is interested in this program and it doesnt work as is for you, email me and ill work to change it, but im not going to watch this thread any more... jmclaren7@hotmail.comupdated read first post Link to comment Share on other sites More sharing options...
jamesbob Posted September 9, 2008 Report Share Posted September 9, 2008 could this change queue settings Link to comment Share on other sites More sharing options...
jmclaren7 Posted September 9, 2008 Author Report Share Posted September 9, 2008 that another good idea, ill add that tomorow... i just updated it to let you to turn the scheduler on and off, and it seems to be alot more reliable too... plus the method of preventing focus stealing seems to be more refined. Link to comment Share on other sites More sharing options...
Hugo Posted October 4, 2008 Report Share Posted October 4, 2008 Thanks a lot! I love this script!I am currently writing a batch file to slow down utorrent if any other pc is using firefox, and this script is just what I need. So far it is working well.changing the maximum number of active downloads and maximum number of active torrents would be a nice addition.another thing that would be neat but probably too complicated: restoring settings to their original values. This way I could change the normal settings in utorrent, and they would not be overwritten when the script switches them to the limited settings and back.i.e. a switch "-store file.x" to save current connection settings, and a switch "-load file.x" to load them again. However this would probably involve screen scraping and be beyond the scope of a simple script.And enabling/disabling the scheduler works mostly the same, as long as I do not change connected peers or slotsAddendum:After a while of thinkering I came to the conclusion that the utorrent web ui might be better suited for this sort of remote controlThe script is pretty nice, but there may be some fundamental problems like focus and screen updates with this method of input.I switched to using wget for this stuff:wget "http://WEBUI-USER:WEBUI-PASSWORD@localhost:WEBUI-PORT/gui/?action=setsetting&s=sched_enable&v=0" -q -O-The above line switches of the schedulerinstead of "&s=sched_enable&v=0" other example parameters include:&s=sched_enable&v=1&s=sched_ul_rate&v=6&s=sched_dl_rate&v=30&s=max_dl_rate&v=32&s=max_ul_rate&v=100&s=conns_per_torrent&v=49&s=conns_globally&v=299&s=max_active_torrent&v=30&s=max_active_downloads&v=4&s=extra_ulslots&v=0&s=gui.persistent_labels&v=test123123&s=max_dl_rate&v=32&s=max_ul_rate&v=100 Link to comment Share on other sites More sharing options...
jmclaren7 Posted December 30, 2008 Author Report Share Posted December 30, 2008 I totally agree, i read you post a while back and for anyone whos interested im planning out a fairly airtight script that would use the webui in place of direct control, however ill continue support for the direct control script.this new script could be very useful, i have what most would consider a large home network, using this method i plan to create a script that could be used on another network PC as well, so lets say the default speeds of utorrent are unlimited/unlimited then when someone starts moving their mouse on any PC it drops to 400/40, their could be many options for triggers some less sensitive like whenever IE/FF are actively in use plus an option for a user to request x time of slow speed.The above would fit seamlessly aside a program to consolidate all of a networks torrent usage to one PC, in place of having uTorrent installed on a 2nd PC, a small app is installed that transmits the torrent file to the primary pc, where presumably the torrent completed folder would be shared.comments / suggestions?@Hugo I havnt been able to find a documentation about the webui parameters, i asume you got them from viewing them in your browser, anyway idea how we could find out how the webui send the URL for add torrent? Link to comment Share on other sites More sharing options...
Ultima Posted December 30, 2008 Report Share Posted December 30, 2008 http://forum.utorrent.com/viewtopic.php?id=25661Er, it's a sticky right in this forum... And make sure you support token authentication. Link to comment Share on other sites More sharing options...
jmclaren7 Posted December 30, 2008 Author Report Share Posted December 30, 2008 Thanks, dont know how i missed it =/ im having an issue figuring out this cookie thing, if a torrent download needs your system to have a cookie stored on it from the prior page or whatever, how would a script identify the cookie... i might be able to figure this out i guess if someone could give me muliple examples of sites that use this method Link to comment Share on other sites More sharing options...
Ultima Posted December 31, 2008 Report Share Posted December 31, 2008 Hm? What cookie? Link to comment Share on other sites More sharing options...
jmclaren7 Posted December 31, 2008 Author Report Share Posted December 31, 2008 dont some sites use cookies to prevent direct download of torrent by an application and isnt that why the add torrent from url function has a input box for cookie information? Link to comment Share on other sites More sharing options...
Ultima Posted December 31, 2008 Report Share Posted December 31, 2008 Oh, that's not something you should be handling. The user should input the cookie information themselves as described in the user manual (or the RSS Tutorial). The only thing you need to do is pass the entire URL string (along with the :COOKIE: section) in an escaped format to the WebUI backend. Link to comment Share on other sites More sharing options...
jmclaren7 Posted January 31, 2009 Author Report Share Posted January 31, 2009 ive created a newprogram that some might be interested in, its for managing utorrent on a LAN: http://forum.utorrent.com/viewtopic.php?pid=391389#p391389this speed change utility will be shortly updated to be used via the WebUI Link to comment Share on other sites More sharing options...
40.02 Posted August 8, 2009 Report Share Posted August 8, 2009 Hi there!Idea of this program - is brilliant, thanks to author.But it is not work on my pc. Is it works with utorrent 1.8.3? Link to comment Share on other sites More sharing options...
jmclaren7 Posted February 9, 2010 Author Report Share Posted February 9, 2010 Updated! Now has token auth support, more updates to come... any ideas?ive totaly re-done my other project too... http://forum.utorrent.com/viewtopic.php?pid=391389#p391389if someone finds it interesting bumb it would you? its a very old topic Link to comment Share on other sites More sharing options...
sharp symmetry Posted March 6, 2010 Report Share Posted March 6, 2010 Not wanting to spend time familiarizing myself with AutoIt will this play well with OSX? Link to comment Share on other sites More sharing options...
jmclaren7 Posted March 6, 2010 Author Report Share Posted March 6, 2010 sorry but no, Autoit is a windows scripting language, if you explain exactly what your trying to accomplish i might be able to make a suggestion: apple script can get most any job done, the only thing that might be hard is making a script thats compatible with token auth. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.