Jump to content

#AutoIt3Wrapper error or user error?


Recommended Posts

#AutoIt3Wrapper error or user error?

I tried to use the #AutoIt3Wrapper_AU3Check_Parameter "-I dir".
Unfortunately without success. 🙁
Here the two scripts:
Test1.au3

#AutoIt3Wrapper_AU3Check_Parameters=-I C:\Users\Hubertus\Documents\Data\misc\Test\I -v 1
#AutoIt3Wrapper_Run_Before=type C:\Users\Hubertus\Documents\Data\misc\Test\I\Test2.au3
#include <Test2.au3>
ConsoleWrite("This is Test1.au3" & @CRLF)

Test2.au3

ConsoleWrite("This is Test2.au3" & @CRLF)

and here the output of "Compile"

image.thumb.png.747022b325d5ff9afb10466041c98c82.png

Why is "Test2.au3" found by #Runbefore "Type" and then not in statement "#include <Test2.au3>"?

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • Developers
12 minutes ago, Exit said:

Why is "Test2.au3" found by #Runbefore "Type" and then not in statement "#include <Test2.au3>"?

...because the directive has the fully qualified path to test2.au3 and your script is in a different directory so AutoIt3.exe is not able to find the include as you didn't specify the path and it is not in its default search list of directories.

Jos

PS: Strange/misleading topic title as the #AutoIt3Wrapper directive is working and AutoIt3 having the "issue" ;)  

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

Link to comment
Share on other sites

@Jos

As the console output shows, the directory is in the search path:

Include search-path : C:\Program Files (x86)\AutoIt3\Include
Include search-path : C:\Users\Hubertus\Documents\Data\Autoit\Include
Include search-path : C:\Users\Hubertus\Documents\Data\misc\Test\I

 

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • Developers
33 minutes ago, Exit said:

What does it make sense to use the include path only in Au3check and then not in Autoit3?

Agree and that is why I never use that, but rather add it to the registry using SciTEConfig or manually so they both will use it.

Jos

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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