autoit180 Posted January 11, 2009 Posted January 11, 2009 hi, wanted to know if there is a way to write such automatic utorrent script: the script will download torrents in predefined folder , identify every time a torrent finished downloading , delete that specific torrent and redownload it again in an endless loop I will be glad if anyone gives me an example to such script
iHonda Posted January 11, 2009 Posted January 11, 2009 uhh quick question .... do you want to redownload the exact same item?? and if so why?? A great place to start Autoit 1-2-3
walle Posted January 11, 2009 Posted January 11, 2009 hi, wanted to know if there is a way to write such automatic utorrent script: the script will download torrents in predefined folder , identify every time a torrent finished downloading , delete that specific torrent and redownload it again in an endless loop I will be glad if anyone gives me an example to such script Maybe this can get you started. Another, easier way to check if a torrent has finished downloading is by using Utorrents "launch application when torrent has finished" and then search for that particelar process. expandcollapse popupWinWait("[REGEXPTITLE:Torrent.\d+.*$]") WinSetState("[REGEXPTITLE:Torrent.\d+.*$]","",@SW_SHOWNORMAL) Do $GetWST = WinGetState("[REGEXPTITLE:Torrent.\d+.*$]") If $GetWST = BitAND(21,23) Then WinSetState("[REGEXPTITLE:Torrent.\d+.*$]","",@SW_SHOWNORMAL) WinSetState("[REGEXPTITLE:Torrent.\d+.*$]","",@SW_HIDE) EndIf $title = "[REGEXPTITLE:Torrent.\d+.*$]" $listcontrol = "[CLASSNN:SysListView322]" $hWnd = ControlGetHandle( $title, "", $listcontrol ) $header_hWnd = _GUICtrlListView_GetHeader($hWnd) $Torrentname = "" $FindTN = _GUICtrlListView_FindInText($HWND, $Torrentname) $TEST = _GUICtrlListView_GetItemText($HWND, $FindTN) $ccount = ControlListView("[REGEXPTITLE:Torrent.\d+.*$]", "", "SysListView322", "GetSubItemCount") $icount = ControlListView("[REGEXPTITLE:Torrent.\d+.*$]", "", "SysListView322", "GetItemCount") Dim $listarray[$ccount][$icount+1] For $c = 0 To $ccount-1 $listarray[$c][0] = _GUICtrlListView_GetItemText($header_hWnd, $c) $Countmore = $icount - $FindTN For $i = $FindTN To $icount-$Countmore $itemtext = _GUICtrlListView_GetItemText($hWnd, $i, $c) $listarray[$c][$i+1] = $itemtext Next Next For $c = 0 To $ccount-1 ;ConsoleWrite($listarray[$c][0]) For $i = 0 To $icount-1 ;ConsoleWrite($listarray[$c][$i+1]) Next ;ConsoleWrite("|") Next
Bam Posted January 13, 2009 Posted January 13, 2009 Lol, for realy why do u want to redownload the same thing u torrent killer! i hope utorrent has a share ratio thing like vuze to make u dl slower
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now