keashdoc Posted December 10, 2023 Posted December 10, 2023 Hi, I have multiple Auto-it scripts that have about 20 lines of code in the beginning that is the same. Is there any way to save this common code into a separate file and then somehow import the common code into the individual Auto-It scripts? Thanks K
donnyh13 Posted December 10, 2023 Posted December 10, 2023 You could save the code to its own .au3 Script file and place it in a specific directory and then just put at the top of your other scripts, #include "My Scripts\SpecialScript.au3" depending on where you save your script, whether in the same folder, same folder inside of a folder, or a totally different folder the path will need to change. The help file for #Include should explain it well. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Reveal hidden contents "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
ioa747 Posted December 11, 2023 Posted December 11, 2023 if it's just to avoid typing, you can use Abbrev Manager https://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/abbrev-manager.html I know that I know nothing
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