Welcome to the AutoIt Snippets thread This section is dedicated to small reusable pieces of AutoIt code i.e. Snippets They can be added to your script to give extra functionality without writing extra code. they are varied and cover many subjects like GUI's, Maths, Networking and many others. Autoit Snippets Please visit the link above and you will find many examples to help you. Many thanks for all the work from everybody who contributed to the original Autoit Wrappers thread created by Valuater which gave us the starting point for the Wiki, and those who added their code to it like Valuater, guinness, SmOke_N, GEOSoft, Zedna, Mhz, GaryFrost and many others. Submitting Code Instructions We would also like you to have a look through your saved code and if you have examples that would be usefull to others then submit them so they can be added to the wiki for the benefit of all. After you have submitted one they will remain on the thread for a short while and after it has been added to the Wiki it will be removed from the thread shortly afterwards to keep the submissions current. Take this example by guinness #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7 ; Checks To See If The Internet Is Connected ConsoleWrite("Internet Is Connected" & " = " & _IsInternetConnected() & @CRLF) ; ( Returns "True" Or "False" ) Func _IsInternetConnected() Local $aReturn = DllCall('connect.dll', 'long', 'IsInternetConnected') If @error Then Return SetError(1, 0, False) EndIf Return $aReturn[0] = 0 EndFunc ;==>_IsInternetConnected This is how we would like them submitted so that whoever uses the example can paste it in SciTE and it gives a result [MsgBox / ConsoleWrite Etc] that the user can see and understand. They don't have to be in a Function like the above example (Although that will be the preferred option), but they must have a way of calling the code so it gives a reproducible result. A few points to note for submissions: 1: All code to be submitted must be run with this line and have no errors or warnings. #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7 2: Please use Tidy on your scripts before you submit them 3: Although it is our aim to transfer all posted scripts into the Wiki listings, the final decision to do so is entirely at the discretion of the editorial panel. Remember this is NOT a UDF thread, Snippets are small functions pieces of code not large ones, if your code has more than 2-3 functions in it, you may be better looking at making a UDF. Instructions on how to make one are to be found here. UDF Standards I hope you will make use of this section and add too it to make it better for all who use AutoIt Many thanks to guinness and Melba23 for their help and advice whilst the section was being made As the Wiki is now open for editing this is the template ive used to add the sections so far In the Snippets Section This code is for adding to the Wiki only it will not work in AutoIt Leave the rest unchanged so they are similar and uniform. Note: Can we keep conversation in this thread to a minimum please, as this sections posts are deleted as they are added to the wiki, so if your chatting about a piece of code it will deleted as well. Better to discuss elsewhere, Thanks. Enjoy your coding