WilliamWhite Posted January 15, 2010 Posted January 15, 2010 Hello Maybe this is been handled somewhere in the forum, then my apoligise, I couldnt find it. Although a rather noob, I still doing more and more with Autoit. With my last programm hitting the 1000 lines mark i have a question. In proper use of Auto it, is it more advicable to group simular parts in separate au files and combine them with #includes in one... Or make one big file and let the program be there in total? I start to think maybe its better to separate them but version control seems awfull difficult for me then. Any suggestions from the pro's ? regards, William
Moderators Melba23 Posted January 15, 2010 Moderators Posted January 15, 2010 WilliamWhite,I keep my main script in one file and then use includes when I need regularly-used functions - either from the standard includes or my own library.If you find your script is getting too big, have you discovered the #Region/#EndRegion directives in SciTE? These allow you to shrink the parts of your script you do not want to see at the moment - think of OutLine View in Word. I currently have a 4000+ line main script in SciTE which, when shrunk using this technique, fits onto a single screen.You may need to use the full version of SciTE4AutoIt3 to get this functionality (I have used the full version for so long now I have forgotten just what the cut-down version does! ) and you can download it here if you would like to try it. It really is worth it - you get lots more goodies to play with which make scripting with AutoIt even easier. (Jos, another commission payment please! )I hope that helps. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
WilliamWhite Posted January 21, 2010 Author Posted January 21, 2010 #regions !!!! that was what i was looking for! THANKS Now i use it and ahve all still in one program. A side step...I now started to use the include for testing small parts. I make a small au3 with a variable in it that surpases the main programengine in the main program. So when i want to test a function i can do that with all variables and options available in the small.au3 When it then works i put it in the big one But again thanks for the regions, you saved my day regards, William
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