More Flexibility with #Requires
Posted: 17 Jul 2020, 07:50
As of AHK 1.1.33, the #Requires directive was added, allowing users to require others for a certain version (or higher) of AHK to be ran with the script. I see very little use with this directive with it only being used to check for the ran version of AHK. My "wish" is to allow more options for the "Requirement" parameter. I have a few ideas:
- Unicode VS ANSI. Allowing the user to download or save a script to their computer to try out or mess around with is quite nice, but sometimes using Unicode vs ANSI is required in some cases.
- 32 VS 64 bit. Displaying a message is sometimes not enough, and the whole purpose of the #Requires directive is to require a certain condition to be met. Allowing the script to be ran in a certain bit size rather than have an If line at the beginning of the script would help a bit.
- File Existance. Downloading a single file of a script and not the necessary Dynamic Link Libraries for the script to work could cause problems along the way, and as I've said above, putting an If at the beginning of a script isn't too helpful.