Exit 154 Posted June 11, 2019 #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" Why is "Test2.au3" found by #Runbefore "Type" and then not in statement "#include <Test2.au3>"? App: Au3toCmd UDF: _SingleScript() Share this post Link to post Share on other sites
Jos 2,210 Posted June 11, 2019 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. Share this post Link to post Share on other sites
Exit 154 Posted June 11, 2019 @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() Share this post Link to post Share on other sites
Jos 2,210 Posted June 11, 2019 ... but that is only for au3check, not for Autoit3! 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. Share this post Link to post Share on other sites
Exit 154 Posted June 11, 2019 What does it make sense to use the include path only in Au3check and then not in Autoit3? What should be achieved with the parameter "-I dir"? A practical example would be helpful. App: Au3toCmd UDF: _SingleScript() Share this post Link to post Share on other sites
Jos 2,210 Posted June 11, 2019 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. Share this post Link to post Share on other sites