Jump to content

Recommended Posts

Posted

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

  • Developers
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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

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

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...