LondonNDIB Posted June 4, 2007 Share Posted June 4, 2007 (edited) 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 June 4, 2007 by LondonNDIB Link to comment Share on other sites More sharing options...
martin Posted June 4, 2007 Share Posted June 4, 2007 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 More sharing options...
Developers Jos Posted June 4, 2007 Developers Share Posted June 4, 2007 (edited) Remove the Spaces/Tabs infront of the #Include statement... (this is an Open Bug) ... Edited June 4, 2007 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 More sharing options...
LondonNDIB Posted June 4, 2007 Author Share Posted June 4, 2007 (edited) 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 June 4, 2007 by LondonNDIB Link to comment Share on other sites More sharing options...
LondonNDIB Posted June 4, 2007 Author Share Posted June 4, 2007 Remove the Spaces/Tabs infront of the #Include statement... (this is an Open Bug) ...Ahhh... great, thanks!Really pulling my hair out on that trying to figure out what I changed!!Thanks. LD Link to comment Share on other sites More sharing options...
LondonNDIB Posted June 4, 2007 Author Share Posted June 4, 2007 Confirmed... that did the trick. Thanks JdeB Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now