Yamz Posted December 10, 2013 Share Posted December 10, 2013 Let me preface by stating that I am new to programming so don't judge too harshly. Just a quick question. I've tried searching the forums and couldn't find the answer. I know that if you use #includes that your are, in essence, pulling code from another .au3 file into your own script. I even read that when you create GUIs that you have to call a couple includes. However, I tried running a test script with and without the includes and the script runs regardless. Why then do I need to call functions with include statements when the script is running no matter if I call the function or not. Thank you for your responses in advance and for you seasoned programmers I can only imagine how utterly childish this question may seem. :/ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 10, 2013 Moderators Share Posted December 10, 2013 Yamz,You only need to include files if they contain functions or constants that you want to use in the main script. If you used only native AutoIt functions then it is quite possible that a script ran without includes - although it must have been a very simple one. 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 Link to comment Share on other sites More sharing options...
Gianni Posted December 10, 2013 Share Posted December 10, 2013 Hi Yamz The full list of AutoIt built-in functions is here (no need of #include) if you open the help of AutoIt you can see that many functions start with _ (underscore), that are not native functions and an appropriate #include is required if you want use that function. (In the help page is specified what include you need) bye Yamz 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Moderators Solution Melba23 Posted December 10, 2013 Moderators Solution Share Posted December 10, 2013 PincoPanco, The full list of AutoIt built-in functions is here (no need of #include)That is not entirely true. You might still need the basic GUIConstantsEx, WindowsConstants & Constants #include files to set the parameters for some of those functions. Unless you want to upset guinness and use "magic numbers" of course. 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 Link to comment Share on other sites More sharing options...
Yamz Posted December 10, 2013 Author Share Posted December 10, 2013 Thanks guys. I appreciate your help. 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