I started a little autoit project. I didn't think I would make it big, so I putted all of my functions and includes in one unique au3 file (I know it's a bad idea).
I have a file that is like
#include <lib1>
#include <lib2>
#include <lib3>
;...
Global $var1 = 1
Global $var2 = "df"
Func a()
; do thinghs
endfunc
Func b()
;do things
$something = a()
endfunc
Func c()
;do things
$something = a()
$else = b()
endfunc
;and so on
func main()
;...
endfunc
main()
The problem is that the file is now 3000 lines and it became very difficult to move through. I would love to split my project into more files
I tried splitting the function "by category", like
;; FILE funcs1.au3
func a()
;...
endfunc
func b()
;...
a()
endfunc
;FILE funcs2.au3
Func c()
a()
b()
;..
endfunc
Func d()
e()
;...
Endfunc
;FILE funcs3.au3
Func e()
c()
;...
endfunc
Func f()
a()
d()
;...
endfunc
But you see that when I need to include one another there is a problem: in function "d" (from funcs2.au3) I call function "e" which is in funcs3.au3, but in funcs3.au3 there is function "f" which call "a" and "d", so I need to include funcs1.au3 and funcs2 again.
The function I wrote are nested and I can think a way to include all of them from one file to another.
How can I achive this?
Thank you and sorry for bad English.