Autohotkey download torrents based on list






















This work is licensed under a Creative Commons Attribution 4. Skip to content. Star 1. Branches Tags. Could not load branches. Could not load tags. Latest commit. Git stats commits. Failed to load latest commit information. Jun 13, Jan 5, Sep 23, Nov 9, View code.

Awesome AutoHotkey A curated list of awesome AutoHotkey libraries, library distributions, scripts, tools and resources. Forum thread: link. This library enables you to create an object representing a console to interact with, as well as multiple console buffer objects to facilitate in double buffering.

This library enables you to write console applications and interact with other console instances. Basically, this library facilitates anything that has to do with writing and interacting with consoles. List manipulation functions - by Laszlo - Function library to manipulate comma delimited lists. LibCrypt - by different authors - A collection of crypting and encoding functions.

Filesystem FileGetProperties - by kon - Functions for retrieving extended file properties. ImagePut - by iseahound - Image library for converting to files, streams, windows, base64, urls, cursors, screen coordinates, clipboard, pointers, handles, and more.

Supports AutoHotkey v1 and v2. Forum thread: link Edit Edit v2. Maths calc - math expression evaluation incl brackets.

Eval - by Pulover - Evaluate expressions in strings. Forum thread: link Scientific Maths - by Avi - Library facilitating high precision mathematics. Time - by HotkeyIt - Count Days, hours, minutes, seconds between dates.

Supports TCP. Forum link Chrome. Download link. Forum link gdiChartLib - by nnnik - a gdip chart lib for autohotkey. Forum thread: Link Text manipulation String Things - by tidbit - Stand-alone string manipulation functions.

Library Distributions List of useful AutoHotkey library distributions. Trello link. Scripts List of useful AutoHotkey scripts. Forum thread link. Clipjump - is a Multiple-Clipboard management utility for Windows. I had also created a little addon that could like your function get the announce url, and get any comments on the torrent, and also get a list of files. I was working on improving the addon by creating a listview and having the default icon for the filetypes shown I have no idea where this addon is as this was a while ago I worked on this, but its similar enough to your code that it could easily be recreated.

I had also written more engines than just IsoHunt, and had reached version 1. You could just use FileReadLine 1, as all the torrents I have, have that info on the 1st line.

Dont know whther that will muck anything else up, but it doesnt appear to for any of the torrents I have. I doubt ill continue with the project until multithreading is available, so if you want any of that code, then feel free The reason I replace nulls first is that you won't be able to use InStr if the string you're looking for occurs after a null is encountered.

This shouldn't generally happen with torrents since the header data is first and I don't know of any nulls in the header, but it can occur in Bencoded files in general. I'll run some tests without that code in there and see if it ever screws up.

Unfortunately it felt too cumbersome so I just left it. I really think multithreading is so badly needed in ahk. Or cs-script can be used to do C scripting. I wish I knew, but I don't I wonder if anybody knows, but Chris Actually, I was thinking few days ago about posting a request to have an official road map for AHK.

Thus, everybody would know bugs and features that are currently worked on, and which ones are pending. Something like a bugzilla. There's somewhere a list of what will be added to ahkv2, but I don't remember where I found it maybe the wiki? Yeh thanks Andreone, I looked on the wiki and in the forum and couldnt find anything.

I agree that a roadmap would be good. It would also stop anyone that is trying to add a feature to ahk or fix a bug from doing the same thing as someone else. Try the new version of this function posted in the original message, with the null character replacement section commented out. If you look at the code I gave, you can see that the data is only parsed once.

Im not having a go, Im just trying to point out some ways you could make it better. Go for it, you can do what you'd like with your code. I hope you don't mind if I take a few pointers from it still however.

For one thing, I only process the torrent file once, when it is loaded, and then I use ByRef vars to work with it, meaning it points to the same place in memory each time. The reason I do this is so that I can have several Torrent functions which work on the same torrent file, without having to load the file for every function.

It wouldn't be very wise to specify the full torrent path in every call to a Torrent function, then have the script load and search the file anew each time.

Since this does everything that I need in SteamLab for the moment, and nobody has pointed out any other uses so far, I haven't taken the time to rewrite the whole function or add additional functionality yet. It's nothing against your code, it's probably superior to mine and I plan to greatly enhance the speed and commands used in future releases.

I see the regex commands, which could shorten my code slightly. But I don't really see where I've gone terribly wrong with my code. Could you point out some instances where your code would be faster or work better than mine? I'd like to fix it if I've done something wrong, or there's a better eg faster, or more beneficial way to do it.

And I'm not talking about getting the other data out of your function, since that will be included in separate functions in my library. I just mean with reading the torrent and getting the files and name. I also don't want to create a global array as I think that is messy and not quite as stdlib friendly, I just want to accept parameters and return a value.

The caller can do what they'd like with the files after they're returned, or they can use my other future functions to work directly on the files without getting them into a list first. GetFiles is only meant to get a list of the files. FOr that purpose, one method doesn't seem to be faster than the other in my tests so far. I'll consider creating a global array for the files, but Loop, Parse works quite fast on all data I have returned from the function so far.

Yes, from my tests also doing loops and outputting time taken the functions seem very similar speed, although with a couple of regexs the whole code becomes much shorter. That way, if you put a var there, a global array will be created based on the var.

That would be something of a compromise and would give my script at least the flexibility to conform to the way you, and probably many others, would prefer, while still allowing me the simplicity of a return value as desired I do understand that the way you've done it conforms to it being an AHK command.

However, since my Torrent library is designed for future use to be used as the basis for a torrent script, calling its functions many times and for various things, I think in the case of a Library it's better to separate them rather than combine them all into a single function. For your purpose, it may be better to keep them all together, however. Great work, Tic!



0コメント

  • 1000 / 1000