jack wrote:
if you decide to implement something, please can you make it an installation-wide default that the include file is off? further, can you also add some option so that a script can say 'do not use any system include file'?
i can forsee problems when i give a script to somebody else who uses an automatically-included file that breaks something in my script.
That's another important disadvantage I didn't realize until now. Thanks. Overall, I'm leaning toward not adding this feature because the small benefits it delivers don't seem worth the costs in confusion and compatibility issues, and the fact that the registry or an INI file would have to be used to determine whether the feature is enabled or disabled.
BoBo wrote:
Thx for sharing that. Unfortunately the Errorlevel delivers only a single value ... That's why I've used two variables in my above sample.
I missed that, thanks for clarifying.
Stefan wrote:
but i don´t want to always insert
StringLeft, Century, A_YYYY, 2
That's a good example. You probably know that you could just remember to include something like the following at the top of every script:
#Include D.ahk
... which will set up the default constants you use regularly.