Sign in to follow this  
Followers 0
jhocott

Help with include

3 posts in this topic

I am trying to include a file in a script. The target file is in the same directory as the script. I have tried;

#include ("file.au3")

#include ("..." & "\" & "file.au3")

#include (@scriptDir &"\" & "file.au3")

The include command is the only non-comment line in the test script. When I run the script, nuttin' hoppins. I can find no examples for my test and frankly, the help text isn't very helpful.\

Someone please point out what I'm doing wrong or failing to do.

Thanks

Jay


Jay

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I am trying to include a file in a script.  The target file is in the same directory as the script.  I have tried;

#include ("file.au3")

#include ("..." & "\" & "file.au3")

#include (@scriptDir &"\" & "file.au3")

The include command is the only non-comment line in the test script.  When I run the script, nuttin' hoppins.  I can find no examples for my test and frankly, the help text isn't very helpful.\

Someone please point out what I'm doing wrong or failing to do.

Thanks

Jay

<{POST_SNAPBACK}>

What about:

#include "file.au3"

:ph34r:

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

What about:

#include "file.au3"

:ph34r:

<{POST_SNAPBACK}>

Thanks, I've been burned by missing parens I put them on without thinking. And apparently without reading carefully enough either.

Jay

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