Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon

AutoIt

AutoIt - Programming language

< >

AutoIt is a programming language created in 1999 by Jonathan Bennett.

#184on PLDB 24Years Old 1.0kUsers
5Books 0Papers 5kRepos

AutoIt is a freeware automation language for Microsoft Windows. In its earliest release, the software was primarily intended to create automation scripts (sometimes called macros) for Microsoft Windows programs but has since grown to include enhancements in both programming language design and overall functionality. While the scripting language in AutoIt 1 and 2 was statement-driven, designed primarily for simulating user interaction, from version 3 onwards the AutoIt syntax is similar to that found in the BASIC family of languages. Read more on Wikipedia...


Example from hello-world:
MsgBox(0, "Message Box", "Hello World")
Example from Wikipedia:
; Find Average by JohnOne, modified by czardas #include <MsgBoxConstants.au3> _Example() ; Run the example. Func _Example() ; Display an input box and ask the user to enter some numbers separated by commas. Local $sInput = InputBox("Find Average", "Enter some numbers separated by commas: 1,2,42,100,3") ; If an error occurred then exit the script. If @error Then Exit ; Populate an array with the user's input. Local $aSplit = StringSplit($sInput, ",") ; Pass the array to the function _Find_Average() and then check for errors. Local $fAverage = _Find_Average($aSplit) If @error Then Exit ; Display the result in a message box. MsgBox($MB_OK, "Find Average", "Result: " & $fAverage) EndFunc ;==>_Example Func _Find_Average($aArray) ; If the input is not of the correct type (an array), then return an error along with the details. If Not IsArray($aArray) Then Return SetError(1, 0, VarGetType($aArray)) ; More detailed checks are possible, but for brevity just one is performed here. ; Declare a variable to store the sum of the numbers. Local $iArraySum = 0 ; Loop through the array. For $i = 1 To $aArray[0] ; Increment the sum by the number in each array element. $iArraySum += Number($aArray[$i]) Next ; Return the average rounded to 2 decimal places. Return Round($iArraySum / $aArray[0], 2) EndFunc ;==>_Find_Average

Keywords in AutoIt

#include-once #include #endregion #forcedef #forceref #region and byref case continueloop dim do else elseif endfunc endif endselect exit exitloop for func global if local next not or return select step then to until wend while exit

Language features

Feature Supported Token Example
MultiLine Comments ✓
Integers ✓
; \d+
Floats ✓
; (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
Hexadecimals ✓
; 0[xX][a-fA-F0-9]+
Octals ✓
; 0\d+
Conditionals ✓
While Loops ✓
Strings ✓ "
"Hello world"
Print() Debugging ✓ MsgBox
Line Comments ✓ ;
; A comment
Comments ✓
Semantic Indentation X

Books about AutoIt from ISBNdb

title authors year publisher
Instant AutoIt Scripting Laso, Emilio Aristides de Fez 2013 Packt Publishing
AutoIT Scripting for Beginners E, Rajan 2015 CreateSpace Independent Publishing Platform
Instant AutoIt Scripting Emilio Aristides de Fez Laso 2013-07-26 Packt Publishing
Practical Laboratory Automation: Made Easy With Autoit Carvalho, Matheus C. Wiley-vch,
Practical Laboratory Automation: Made Easy with AutoIt Matheus C. Carvalho 2016-10-24 Wiley Global Research (STMS)
coq.html · autoit.html · emacs-lisp.html

View source

- Build the next great programming language · Search · v2023 · Day 208 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub · feedback@pldb.com