Jump to content

Recommended Posts

Posted

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

Posted

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

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...