dbzfanatic Posted September 22, 2007 Share Posted September 22, 2007 Is there a certain syntax I need to follow for functions that aren't in the same au3 file as the program that uses them? They work perfectly inside the same au3 file but when I move them to their own they don't show up like _IECreate or _ArrayDisplay or GUICtrlRead or any other pre-made functions. What am I doing wrong? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
therks Posted September 22, 2007 Share Posted September 22, 2007 What do you mean they don't show up?Save as Include.au3:Func TestMe() MsgBox(0, '', 'Test') EndFuncSave as Test.au3#include "Include.au3" TestMe()Make sure they're both in the same folder and run Test.au3. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 22, 2007 Author Share Posted September 22, 2007 (edited) Both au3 files are in the same folder and what I mean is that normally when you start to type a function autocomplete gives a list of recomendations and when you're done typing the function turns blue, that doesn't happen with mine. Edit: I know one of you is going to ask for the error given and it's "Undefined Function" Edited September 22, 2007 by dbzfanatic Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
frostfel Posted September 22, 2007 Share Posted September 22, 2007 (edited) Both au3 files are in the same folder and what I mean is that normally when you start to type a function autocomplete gives a list of recomendations and when you're done typing the function turns blue, that doesn't happen with mine.Edit: I know one of you is going to ask for the error given and it's "Undefined Function"Heres an example of what the Main file and the Second(File with ur functions) would look like. Put them in same folderHope this helpsMain.au3#include <Second.au3> _NewFunc()Second.au3#include-once #region _New Func _NewFunc() Test EndFunc #endregion Edited September 22, 2007 by frostfel Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 22, 2007 Author Share Posted September 22, 2007 (edited) I think I forgot to put the #endregion in the 2nd au3 file w/ the acutal functions... Edit: nope, just tried it, still getting that freaking "Undefined Function" error. Edit to the Edit: sorry, it does work I forgot to reinclude the 2nd au3 file too man I'm out of it today. Thanks a lot guys/girls. Edited September 22, 2007 by dbzfanatic Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
frostfel Posted September 22, 2007 Share Posted September 22, 2007 I think I forgot to put the #endregion in the 2nd au3 file w/ the acutal functions...Yeah I forget sometimes too dont forget to start the region also exp. #region _New Link to comment Share on other sites More sharing options...
therks Posted September 26, 2007 Share Posted September 26, 2007 ??? Regions don't actually do anything. They're only used with Scite. They don't have any real impact on AutoIt code, they're just for organizational purposes. Just try running this code: #endregion msgbox(0,0,'hi there') #endregion #region And you'll see that nothing strange happens. My AutoIt Stuff | My Github 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