Jump to content

Grr... what changed? #Include not working suddenly


Recommended Posts

This was fine before I updated my Autoit and SciTe installations I think. Now its like my includes are not getting included! I swear, I didn't change anything! lol. It worked yesterday before I went to bed, now this morning I updated and it doesn't work!! I've even broken it down to a simple test and it still doesn't work.

Here's test1.au3

#include "test2.au3"
    test ();function in the uncluded file

and here is the included test2.au3 (residing in the same folder as test1.au3)

#include-once

Func test ()
    MsgBox ( "", "hello", "success?" )
EndFunc

See the included gif for the error I get.

If I just run the script, it works fine... its only when compiled that I get the error. AutoIt bug? SciTe bug? My syntax???

pulling my hair out here.

LD

Edited by LondonNDIB
Link to comment
Share on other sites

This was fine before I updated my Autoit and SciTe installations I think. Now its like my includes are not getting included! I swear, I didn't change anything! lol. It worked yesterday before I went to bed, now this morning I updated and it doesn't work!! I've even broken it down to a simple test and it still doesn't work.

Here's test1.au3

#include "test2.au3"
    test ();function in the uncluded file

and here is the included test2.au3 (residing in the same folder as test1.au3)

#include-once

Func test ()
    MsgBox ( "", "hello", "success?" )
EndFunc

See the included gif for the error I get.

If I just run the script, it works fine... its only when compiled that I get the error. AutoIt bug? SciTe bug? My syntax???

pulling my hair out here.

LD

What happens if you have

#include @ScriptDir & "\test2.au3"

?

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.
Link to comment
Share on other sites

  • Developers

Remove the Spaces/Tabs infront of the #Include statement... (this is an Open Bug) ...

:)

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

Link to comment
Share on other sites

It should fail because (from the help):

This must be a string--it cannot be a variable.

But I'll give it a shot...

Nope... same thing. Same error exactly when compiled... different error when uncompiled ("can't parse #include" as I expected)

It doesn't make sense that it would work uncompiled but not when compiled.

Can someone who has the LATEST (non beta) versions of AutoIt and SciTe installed please confirm/deny that the above script provides an error? If so, then I'll submit it as a bug report.

Thanks.

LD

Edited by LondonNDIB
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...