forked from scrooloose/snipmate-snippets
/
autoit.snippets
85 lines (72 loc) · 1.25 KB
/
autoit.snippets
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
snippet if "if"
If ${1:condition} Then
${2:; True code}
EndIf
endsnippet
snippet el "el"
Else
${1}
endsnippet
snippet elif "elif"
ElseIf ${1:condition} Then
${2:; True code}
endsnippet
ElseIf ${1:condition} Then
${2:; True code}
endsnippet
snippet ifel "ifel"
If ${1:condition} Then
${2:; True code}
Else
${3:; Else code}
EndIf
endsnippet
snippet ifelif "ifelif"
If ${1:condition 1} Then
${2:; True code}
ElseIf ${3:condition 2} Then
${4:; True code}
Else
${5:; Else code}
EndIf
endsnippet
snippet switch "switch"
Switch (${1:condition})
Case {$2:case1}:
{$3:; Case 1 code}
Case Else:
{$4:; Else code}
EndSwitch
endsnippet
snippet select "select"
Select (${1:condition})
Case {$2:case1}:
{$3:; Case 1 code}
Case Else:
{$4:; Else code}
EndSelect
endsnippet
snippet while "while"
While (${1:condition})
${2:; code...}
WEnd
endsnippet
snippet for "for"
For ${1:n} = ${3:1} to ${2:count}
${4:; code...}
Next
endsnippet
snippet func "func"
Func ${1:fname}(${2:`!v indent('.') ? 'self' : ''`}):
${4:Return}
EndFunc
endsnippet
snippet msg "msg"
MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"})
endsnippet
snippet debug "debug"
MsgBox(0, "Debug", ${1:"Debug Message"})
endsnippet
snippet showvar "showvar"
MsgBox(0, "${1:VarName}", $1)
endsnippet