-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
autoit.scroll
137 lines (114 loc) · 5.52 KB
/
autoit.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import ../code/conceptPage.scroll
id autoit
name AutoIt
appeared 1999
creators Jonathan Bennett
tags pl
website http://www.autoitscript.com/autoit3/
isOpenSource true
fileType text
documentation https://www.autoitscript.com/autoit3/docs/
rosettaCode http://www.rosettacode.org/wiki/Category:AutoIt
centralPackageRepositoryCount 0
country Unknown
originCommunity AutoIt Consulting Ltd
projectEuler AutoIt
memberCount
2019 7
2022 12
pygmentsHighlighter AutoIt
filename automation.py
fileExtensions au3
twitter https://twitter.com/autoitconsult
leachim6 AutoIt
filepath a/AutoIt.au3
fileExtensions au3
example
MsgBox(0, "Message Box", "Hello World")
keywords #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
lineCommentToken ;
printToken MsgBox
stringToken "
hasComments true
hasLineComments true
; A comment
hasPrintDebugging true
hasSemanticIndentation false
hasStrings true
"Hello world"
hasWhileLoops true
hasConditionals true
hasOctals true
; 0\d+
hasHexadecimals true
; 0[xX][a-fA-F0-9]+
hasFloats true
; (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?
hasIntegers true
; \d+
hasMultiLineComments true
wikipedia https://en.wikipedia.org/wiki/AutoIt
example
; 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
related basic tcp udp autohotkey kixtart thinbasic visual-basic winbatch expect
summary 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. In this form, AutoIt is a general-purpose, third-generation programming language with a classical data model and a variant data type that can store several types of data, including arrays. While version 1 and 2 were compatible with Windows 95, 98, ME, NT4, 2000, XP, 2003, Vista, Windows 7, support for operating systems older than Windows 2000 was discontinued with the release of v3.3.0 in December 2008. Currently AutoIt is also compatible with Windows 2008, Windows 8, Windows 2012, Windows 10, and the minimal requirement is Windows XP SP3. An AutoIt automation script can be converted into a compressed, stand-alone executable which can be run on computers that do not have the AutoIt interpreter installed. A wide range of function libraries (known as UDFs, or "User Defined Functions") are also included as standard or are available from the website to add specialized functionality. AutoIt is also distributed with an IDE based on the free SciTE editor. The compiler and help text are fully integrated and provide a de facto standard environment for developers using AutoIt.
pageId 2281448
dailyPageViews 158
created 2005
backlinksCount 174
revisionCount 567
appeared 2000
tiobe AutoIt
githubBigQuery AutoIt
repos 650
users 561
linguistGrammarRepo https://github.com/AutoIt/SublimeAutoItScript
firstCommit 2013
lastCommit 2018
committerCount 11
commitCount 88
isbndb 5
year|publisher|title|authors|isbn13
2013|Packt Publishing|Instant AutoIt Scripting|Laso, Emilio Aristides de Fez|9781782165798
2015|CreateSpace Independent Publishing Platform|AutoIT Scripting for Beginners|E, Rajan|9781514144480
2013-07-26|Packt Publishing|Instant AutoIt Scripting|Emilio Aristides de Fez Laso|9781782165781
|Wiley-vch,|Practical Laboratory Automation: Made Easy With Autoit|Carvalho, Matheus C.|9783527341580
2016-10-24|Wiley Global Research (STMS)|Practical Laboratory Automation: Made Easy with AutoIt|Matheus C. Carvalho|9783527801961
githubLanguage AutoIt
fileExtensions au3
trendingProjectsCount 0
type programming
aceMode autohotkey
tmScope source.autoit
aliases au3 or AutoIt3 or AutoItScript
repos 4732
semanticScholar 0