janullrich Posted March 26, 2012 Report Share Posted March 26, 2012 I really hope somebody can help me as I am banging my head against the wall at the moment.All I want to do is launch a script when a torrent is FINISHED (which is to say has downloaded and then seeded to the appropriate ratio). If I try and launch it from the "Run on Finished State" box the script doesn't run even if I just put notepad in there. It will only run from the "Run on Changes State" box.The problem is UT goes into the FINISHED stage temporarily (too quick to see) between each stage e.g between Downloading and Seeding.I thought right I'll use the Previous State of the torrent to check whether it was previously Seeding and therefore the Finished is correct or whether it was Downloading and in which case the Finished is incorrect and to exit the script.NOPE. That didn't work because if the torrent is Seeding and then goes into Queued Seed we hit the temporary Finished stage again and triggers the previous state check which it now passes (incorrectly though).Here is the beginning of the script:set State=%1set Kind=%2set Directory=%3set FileName=%4set Title=%5set Label=%6set FilePath=%~7set Previous=%8IF %State%=="Finished" GOTO PREVCHECKIF NOT %State%=="Finished" GOTO END:PREVCHECKIF %Previous%=="5" GOTO OTHERIF %Previous%=="8" GOTO OTHERIF NOT %Previous%=="5" GOTO ENDI am at a loss with what to do. The launch on Finished doesnt appear to work and on change state is next to useless.Can someone please please help me figure out how to get this working.ThanksGaz Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.