Sign in to follow this  
Followers 0
AdmiralAlkex

Trouble with #include....

5 posts in this topic

Lets say I have my script in C:\Script\Bin\ and the file I want to include is in C:\Script\Include\

How can I include the file without hard-coding the path?? (or can't I??)

Share this post


Link to post
Share on other sites



Lets say I have my script in C:\Script\Bin\ and the file I want to include is in C:\Script\Include\

How can I include the file without hard-coding the path?? (or can't I??)

From the help for #include

There is a special registry value that can be created at "HKEY_CURRENT_USER\Software\AutoIt v3\AutoIt" called "Include". It should be a REG_SZ (string) value. The contents of this value are a semi-colon delimited list of directories that should be searched for files when resolving #include's in addition to the standard locations.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

From the help file:

There is a special registry value that can be created at "HKEY_CURRENT_USER\Software\AutoIt v3\AutoIt" called "Include". It should be a REG_SZ (string) value. The contents of this value are a semi-colon delimited list of directories that should be searched for files when resolving #include's in addition to the standard locations.

EDIT: This will allow you to call #include and have it search additional directories, but those have to be hard coded in the registry.

EDIT2: Sorry Martin, didn't see that you already posted this.

Edited by danwilli

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0