" },
15 | { "trigger": "#include-once", "contents": "#include-once" }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/Completions/Keywords.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.autoit",
3 | "completions": [
4 | { "trigger": "Dim", "contents": "Dim" },
5 | { "trigger": "Local", "contents": "Local" },
6 | { "trigger": "Global", "contents": "Global" },
7 | { "trigger": "Const", "contents": "Const" },
8 | { "trigger": "And", "contents": "And" },
9 | { "trigger": "Or", "contents": "Or" },
10 | { "trigger": "Not", "contents": "Not" },
11 | { "trigger": "ByRef", "contents": "ByRef" },
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/Completions/Macros.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.autoit",
3 | "completions": [
4 | { "trigger": "@AppDataCommonDir", "contents": "@AppDataCommonDir" },
5 | { "trigger": "@AppDataDir", "contents": "@AppDataDir" },
6 | { "trigger": "@AutoItExe", "contents": "@AutoItExe" },
7 | { "trigger": "@AutoItPID", "contents": "@AutoItPID" },
8 | { "trigger": "@AutoItVersion", "contents": "@AutoItVersion" },
9 | { "trigger": "@AutoItX64", "contents": "@AutoItX64" },
10 | { "trigger": "@COM_EventObj", "contents": "@COM_EventObj" },
11 | { "trigger": "@CommonFilesDir", "contents": "@CommonFilesDir" },
12 | { "trigger": "@Compiled", "contents": "@Compiled" },
13 | { "trigger": "@ComputerName", "contents": "@ComputerName" },
14 | { "trigger": "@ComSpec", "contents": "@ComSpec" },
15 | { "trigger": "@CPUArch", "contents": "@CPUArch" },
16 | { "trigger": "@CR", "contents": "@CR" },
17 | { "trigger": "@CRLF", "contents": "@CRLF" },
18 | { "trigger": "@DesktopCommonDir", "contents": "@DesktopCommonDir" },
19 | { "trigger": "@DesktopDepth", "contents": "@DesktopDepth" },
20 | { "trigger": "@DesktopDir", "contents": "@DesktopDir" },
21 | { "trigger": "@DesktopHeight", "contents": "@DesktopHeight" },
22 | { "trigger": "@DesktopRefresh", "contents": "@DesktopRefresh" },
23 | { "trigger": "@DesktopWidth", "contents": "@DesktopWidth" },
24 | { "trigger": "@DocumentsCommonDir", "contents": "@DocumentsCommonDir" },
25 | { "trigger": "@error", "contents": "@error" },
26 | { "trigger": "@exitCode", "contents": "@exitCode" },
27 | { "trigger": "@exitMethod", "contents": "@exitMethod" },
28 | { "trigger": "@extended", "contents": "@extended" },
29 | { "trigger": "@FavoritesCommonDir", "contents": "@FavoritesCommonDir" },
30 | { "trigger": "@FavoritesDir", "contents": "@FavoritesDir" },
31 | { "trigger": "@GUI_CtrlHandle", "contents": "@GUI_CtrlHandle" },
32 | { "trigger": "@GUI_CtrlId", "contents": "@GUI_CtrlId" },
33 | { "trigger": "@GUI_DragFile", "contents": "@GUI_DragFile" },
34 | { "trigger": "@GUI_DragId", "contents": "@GUI_DragId" },
35 | { "trigger": "@GUI_DropId", "contents": "@GUI_DropId" },
36 | { "trigger": "@GUI_WinHandle", "contents": "@GUI_WinHandle" },
37 | { "trigger": "@HomeDrive", "contents": "@HomeDrive" },
38 | { "trigger": "@HomePath", "contents": "@HomePath" },
39 | { "trigger": "@HomeShare", "contents": "@HomeShare" },
40 | { "trigger": "@HotKeyPressed", "contents": "@HotKeyPressed" },
41 | { "trigger": "@HOUR", "contents": "@HOUR Hours" },
42 | { "trigger": "@IPAddress1", "contents": "@IPAddress1" },
43 | { "trigger": "@IPAddress2", "contents": "@IPAddress2" },
44 | { "trigger": "@IPAddress3", "contents": "@IPAddress3" },
45 | { "trigger": "@IPAddress4", "contents": "@IPAddress4" },
46 | { "trigger": "@KBLayout", "contents": "@KBLayout" },
47 | { "trigger": "@LF", "contents": "@LF" },
48 | { "trigger": "@LocalAppDataDir", "contents": "@LocalAppDataDir" },
49 | { "trigger": "@LogonDNSDomain", "contents": "@LogonDNSDomain" },
50 | { "trigger": "@LogonDomain", "contents": "@LogonDomain" },
51 | { "trigger": "@LogonServer", "contents": "@LogonServer" },
52 | { "trigger": "@MDAY", "contents": "@MDAY" },
53 | { "trigger": "@MIN", "contents": "@MIN" },
54 | { "trigger": "@MON", "contents": "@MON" },
55 | { "trigger": "@MSEC", "contents": "@MSEC" },
56 | { "trigger": "@MUILang", "contents": "@MUILang" },
57 | { "trigger": "@MyDocumentsDir", "contents": "@MyDocumentsDir" },
58 | { "trigger": "@NumParams", "contents": "@NumParams" },
59 | { "trigger": "@OSArch", "contents": "@OSArch" },
60 | { "trigger": "@OSBuild", "contents": "@OSBuild" },
61 | { "trigger": "@OSLang", "contents": "@OSLang" },
62 | { "trigger": "@OSServicePack", "contents": "@OSServicePack" },
63 | { "trigger": "@OSType", "contents": "@OSType" },
64 | { "trigger": "@OSVersion", "contents": "@OSVersion" },
65 | { "trigger": "@ProgramFilesDir", "contents": "@ProgramFilesDir" },
66 | { "trigger": "@ProgramsCommonDir", "contents": "@ProgramsCommonDir" },
67 | { "trigger": "@ProgramsDir", "contents": "@ProgramsDir" },
68 | { "trigger": "@ScriptDir", "contents": "@ScriptDir" },
69 | { "trigger": "@ScriptFullPath", "contents": "@ScriptFullPath" },
70 | { "trigger": "@ScriptLineNumber", "contents": "@ScriptLineNumber" },
71 | { "trigger": "@ScriptName", "contents": "@ScriptName" },
72 | { "trigger": "@SEC", "contents": "@SEC" },
73 | { "trigger": "@StartMenuCommonDir", "contents": "@StartMenuCommonDir" },
74 | { "trigger": "@StartMenuDir", "contents": "@StartMenuDir" },
75 | { "trigger": "@StartupCommonDir", "contents": "@StartupCommonDir" },
76 | { "trigger": "@StartupDir", "contents": "@StartupDir" },
77 | { "trigger": "@SW_DISABLE", "contents": "@SW_DISABLE" },
78 | { "trigger": "@SW_ENABLE", "contents": "@SW_ENABLE" },
79 | { "trigger": "@SW_HIDE", "contents": "@SW_HIDE" },
80 | { "trigger": "@SW_LOCK", "contents": "@SW_LOCK" },
81 | { "trigger": "@SW_MAXIMIZE", "contents": "@SW_MAXIMIZE" },
82 | { "trigger": "@SW_MINIMIZE", "contents": "@SW_MINIMIZE" },
83 | { "trigger": "@SW_RESTORE", "contents": "@SW_RESTORE" },
84 | { "trigger": "@SW_SHOW", "contents": "@SW_SHOW" },
85 | { "trigger": "@SW_SHOWDEFAULT", "contents": "@SW_SHOWDEFAULT" },
86 | { "trigger": "@SW_SHOWMINIMIZED", "contents": "@SW_SHOWMINIMIZED" },
87 | { "trigger": "@SW_SHOWMINNOACTIVE", "contents": "@SW_SHOWMINNOACTIVE" },
88 | { "trigger": "@SW_SHOWNA", "contents": "@SW_SHOWNA" },
89 | { "trigger": "@SW_SHOWNOACTIVATE", "contents": "@SW_SHOWNOACTIVATE" },
90 | { "trigger": "@SW_SHOWNORMAL", "contents": "@SW_SHOWNORMAL" },
91 | { "trigger": "@SW_UNLOCK", "contents": "@SW_UNLOCK" },
92 | { "trigger": "@SystemDir", "contents": "@SystemDir" },
93 | { "trigger": "@TAB", "contents": "@TAB" },
94 | { "trigger": "@TempDir", "contents": "@TempDir" },
95 | { "trigger": "@TRAY_ID", "contents": "@TRAY_ID" },
96 | { "trigger": "@TrayIconFlashing", "contents": "@TrayIconFlashing" },
97 | { "trigger": "@TrayIconVisible", "contents": "@TrayIconVisible" },
98 | { "trigger": "@UserName", "contents": "@UserName" },
99 | { "trigger": "@UserProfileDir", "contents": "@UserProfileDir" },
100 | { "trigger": "@WDAY", "contents": "@WDAY" },
101 | { "trigger": "@WindowsDir", "contents": "@WindowsDir" },
102 | { "trigger": "@WorkingDir", "contents": "@WorkingDir" },
103 | { "trigger": "@YDAY", "contents": "@YDAY" },
104 | { "trigger": "@YEAR", "contents": "@YEAR" },
105 | ]
106 | }
--------------------------------------------------------------------------------
/Completions/MsgConstantName.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.autoit",
3 | "completions": [
4 | { "trigger": "IDOK Flag MsgBox Constant Name", "contents": "\\$IDOK" },
5 | { "trigger": "IDCANCEL Flag MsgBox Constant Name", "contents": "\\$IDCANCEL" },
6 | { "trigger": "IDABORT Flag MsgBox Constant Name", "contents": "\\$IDABORT " },
7 | { "trigger": "IDRETRY Flag MsgBox Constant Name", "contents": "\\$IDRETRY" },
8 | { "trigger": "IDIGNORE Flag MsgBox Constant Name", "contents": "\\$IDIGNORE" },
9 | { "trigger": "IDYES Flag MsgBox Constant Name", "contents": "\\$IDYES" },
10 | { "trigger": "IDNO Flag MsgBox Constant Name", "contents": "\\$IDNO" },
11 | { "trigger": "IDTRYAGAIN Flag MsgBox Constant Name", "contents": "\\$IDTRYAGAIN" },
12 | { "trigger": "IDCONTINUE Flag MsgBox Constant Name", "contents": "\\$IDCONTINUE" },
13 | { "trigger": "MB_OK Flag MsgBox Constant Name", "contents": "\\$MB_OK" },
14 | { "trigger": "MB_OKCANCEL Flag MsgBox Constant Name", "contents": "\\$MB_OKCANCEL" },
15 | { "trigger": "MB_ABORTRETRYIGNORE Flag MsgBox Constant Name", "contents": "\\$MB_ABORTRETRYIGNORE" },
16 | { "trigger": "MB_YESNOCANCEL Flag MsgBox Constant Name", "contents": "\\$MB_YESNOCANCEL" },
17 | { "trigger": "MB_YESNO Flag MsgBox Constant Name", "contents": "\\$MB_YESNO" },
18 | { "trigger": "MB_RETRYCANCEL Flag MsgBox Constant Name", "contents": "\\$MB_RETRYCANCEL" },
19 | { "trigger": "MB_CANCELTRYCONTINUE Flag MsgBox Constant Name", "contents": "\\$MB_CANCELTRYCONTINUE" },
20 | { "trigger": "MB_HELP Flag MsgBox Constant Name", "contents": "\\$MB_HELP" },
21 | { "trigger": "MB_ICONERROR Flag MsgBox Constant Name", "contents": "\\$MB_ICONERROR" },
22 | { "trigger": "MB_ICONQUESTION Flag MsgBox Constant Name", "contents": "\\$MB_ICONQUESTION" },
23 | { "trigger": "MB_ICONWARNING Flag MsgBox Constant Name", "contents": "\\$MB_ICONWARNING" },
24 | { "trigger": "MB_ICONINFORMATION Flag MsgBox Constant Name", "contents": "\\$MB_ICONINFORMATION" },
25 | { "trigger": "MB_DEFBUTTON1 Flag MsgBox Constant Name", "contents": "\\$MB_DEFBUTTON1" },
26 | { "trigger": "MB_DEFBUTTON2 Flag MsgBox Constant Name", "contents": "\\$MB_DEFBUTTON2" },
27 | { "trigger": "MB_DEFBUTTON3 Flag MsgBox Constant Name", "contents": "\\$MB_DEFBUTTON3" },
28 | { "trigger": "MB_DEFBUTTON4 Flag MsgBox Constant Name", "contents": "\\$MB_DEFBUTTON4" },
29 | { "trigger": "MB_APPLMODAL Flag MsgBox Constant Name", "contents": "\\$MB_APPLMODAL" },
30 | { "trigger": "MB_SYSTEMMODAL Flag MsgBox Constant Name", "contents": "\\$MB_SYSTEMMODAL" },
31 | { "trigger": "MB_TASKMODAL Flag MsgBox Constant Name", "contents": "\\$MB_TASKMODAL" },
32 | { "trigger": "MB_DEFAULT_DESKTOP_ONLY Flag MsgBox Constant Name", "contents": "\\$MB_DEFAULT_DESKTOP_ONLY" },
33 | { "trigger": "MB_RIGHT Flag MsgBox Constant Name", "contents": "\\$MB_RIGHT" },
34 | { "trigger": "MB_RTLREADING Flag MsgBox Constant Name", "contents": "\\$MB_RTLREADING" },
35 | { "trigger": "MB_SETFOREGROUND Flag MsgBox Constant Name", "contents": "\\$MB_SETFOREGROUND" },
36 | { "trigger": "MB_TOPMOST Flag MsgBox Constant Name", "contents": "\\$MB_TOPMOST" },
37 | { "trigger": "MB_SERVICE_NOTIFICATION Flag MsgBox Constant Name", "contents": "\\$MB_SERVICE_NOTIFICATION " },
38 | ]
39 | }
--------------------------------------------------------------------------------
/Completions/SendKeyList.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.autoit",
3 | "completions": [
4 | { "trigger": "SPACE Send Key List", "contents": "{SPACE}" },
5 | { "trigger": "ENTER Send Key List", "contents": "{ENTER}" },
6 | { "trigger": "ALT Send Key List", "contents": "{ALT}" },
7 | { "trigger": "BACKSPACE Send Key List", "contents": "{BS}" },
8 | { "trigger": "DELETE Send Key List", "contents": "{DEL}" },
9 | { "trigger": "UP Send Key List", "contents": "{UP}" },
10 | { "trigger": "DOWN Send Key List", "contents": "{DOWN}" },
11 | { "trigger": "LEFT Send Key List", "contents": "{LEFT}" },
12 | { "trigger": "RIGHT Send Key List", "contents": "{RIGHT}" },
13 | { "trigger": "HOME Send Key List", "contents": "{HOME}" },
14 | { "trigger": "END Send Key List", "contents": "{END}" },
15 | { "trigger": "ESCAPE Send Key List", "contents": "{ESC}" },
16 | { "trigger": "INSERT Send Key List", "contents": "{INS}" },
17 | { "trigger": "PAGE UP Send Key List", "contents": "{PGUP}" },
18 | { "trigger": "PAGE DOWN Send Key List", "contents": "{PGDN}" },
19 | { "trigger": "F1 Send Key List", "contents": "{F1}" },
20 | { "trigger": "F2 Send Key List", "contents": "{F2}" },
21 | { "trigger": "F3 Send Key List", "contents": "{F3}" },
22 | { "trigger": "F4 Send Key List", "contents": "{F4}" },
23 | { "trigger": "F5 Send Key List", "contents": "{F5}" },
24 | { "trigger": "F6 Send Key List", "contents": "{F6}" },
25 | { "trigger": "F7 Send Key List", "contents": "{F7}" },
26 | { "trigger": "F8 Send Key List", "contents": "{F8}" },
27 | { "trigger": "F9 Send Key List", "contents": "{F9}" },
28 | { "trigger": "F10 Send Key List", "contents": "{F10}" },
29 | { "trigger": "F11 Send Key List", "contents": "{F11}" },
30 | { "trigger": "F12 Send Key List", "contents": "{F12}" },
31 | { "trigger": "TAB Send Key List", "contents": "{TAB}" },
32 | { "trigger": "LWIM Send Key List", "contents": "{LWIM}" },
33 | { "trigger": "RWIN Send Key List", "contents": "{RWIN}" },
34 | { "trigger": "NUMLOCK Send Key List", "contents": "{NUMLOCK}" },
35 | { "trigger": "CAPSLOCK Send Key List", "contents": "{CAPSLOCK}" },
36 | { "trigger": "SCROLLLOCK Send Key List", "contents": "{SCROLLLOCK}" },
37 | { "trigger": "BREAK Send Key List", "contents": "{BREAK}" },
38 | { "trigger": "PAUSE Send Key List", "contents": "{PAUSE}" },
39 | { "trigger": "NUMPAD0 Send Key List", "contents": "{NUMPAD0}" },
40 | { "trigger": "NUMPAD1 Send Key List", "contents": "{NUMPAD1}" },
41 | { "trigger": "NUMPAD2 Send Key List", "contents": "{NUMPAD2}" },
42 | { "trigger": "NUMPAD3 Send Key List", "contents": "{NUMPAD3}" },
43 | { "trigger": "NUMPAD4 Send Key List", "contents": "{NUMPAD4}" },
44 | { "trigger": "NUMPAD5 Send Key List", "contents": "{NUMPAD5}" },
45 | { "trigger": "NUMPAD6 Send Key List", "contents": "{NUMPAD6}" },
46 | { "trigger": "NUMPAD7 Send Key List", "contents": "{NUMPAD7}" },
47 | { "trigger": "NUMPAD8 Send Key List", "contents": "{NUMPAD8}" },
48 | { "trigger": "NUMPAD9 Send Key List", "contents": "{NUMPAD9}" },
49 | { "trigger": "NUMPADMULT Send Key List", "contents": "{NUMPADMULT}" },
50 | { "trigger": "NUMPADADD Send Key List", "contents": "{NUMPADADD}" },
51 | { "trigger": "NUMPADSUB Send Key List", "contents": "{NUMPADSUB}" },
52 | { "trigger": "NUMPADDIV Send Key List", "contents": "{NUMPADDIV}" },
53 | { "trigger": "NUMPADDOT Send Key List", "contents": "{NUMPADDOT}" },
54 | { "trigger": "NUMPADENTER Send Key List", "contents": "{NUMPADENTER}" },
55 | { "trigger": "APPSKEY Send Key List", "contents": "{APPSKEY}" },
56 | { "trigger": "LALT Send Key List", "contents": "{LALT}" },
57 | { "trigger": "RALT Send Key List", "contents": "{RALT}" },
58 | { "trigger": "LCTRL Send Key List", "contents": "{LCTRL}" },
59 | { "trigger": "RCTRL Send Key List", "contents": "{RCTRL}" },
60 | { "trigger": "LSHIFT Send Key List", "contents": "{LSHIFT}" },
61 | { "trigger": "RSHIFT Send Key List", "contents": "{RSHIFT}" },
62 | { "trigger": "SLEEP Send Key List", "contents": "{SLEEP}" },
63 | { "trigger": "ALTDOWN Send Key List", "contents": "{ALTDOWN}" },
64 | { "trigger": "SHIFTDOWN Send Key List", "contents": "{SHIFTDOWN}" },
65 | { "trigger": "CTRLDOWN Send Key List", "contents": "{CTRLDOWN}" },
66 | { "trigger": "LWINDOWN Send Key List", "contents": "{LWINDOWN}" },
67 | { "trigger": "RWINDOWN Send Key List", "contents": "{RWINDOWN}" },
68 | { "trigger": "ASC Send Key List", "contents": "{ASC ${1:numeric}}" },
69 | { "trigger": "BROWSER_BACK Send Key List", "contents": "{BROWSER_BACK}"},
70 | { "trigger": "BROWSER_FORWARD Send Key List", "contents": "{BROWSER_FORWARD}"},
71 | { "trigger": "BROWSER_REFRESH Send Key List", "contents": "{BROWSER_REFRESH}"},
72 | { "trigger": "BROWSER_STOP Send Key List", "contents": "{BROWSER_STOP}"},
73 | { "trigger": "BROWSER_SEARCH Send Key List", "contents": "{BROWSER_SEARCH}"},
74 | { "trigger": "BROWSER_FAVORITES Send Key List", "contents": "{BROWSER_FAVORITES}"},
75 | { "trigger": "BROWSER_HOME Send Key List", "contents": "{BROWSER_HOME}"},
76 | { "trigger": "VOLUME_MUTE Send Key List", "contents": "{VOLUME_MUTE}"},
77 | { "trigger": "VOLUME_DOWN Send Key List", "contents": "{VOLUME_DOWN}"},
78 | { "trigger": "VOLUME_UP Send Key List", "contents": "{VOLUME_UP}"},
79 | { "trigger": "MEDIA_NEXT Send Key List", "contents": "{MEDIA_NEXT}"},
80 | { "trigger": "MEDIA_PREV Send Key List", "contents": "{MEDIA_PREV}"},
81 | { "trigger": "MEDIA_STOP Send Key List", "contents": "{MEDIA_STOP}"},
82 | { "trigger": "MEDIA_PLAY_PAUSE Send Key List", "contents": "{MEDIA_PLAY_PAUSE}"},
83 | { "trigger": "LAUNCH_MAIL Send Key List", "contents": "{LAUNCH_MAIL}"},
84 | { "trigger": "LAUNCH_MEDIA Send Key List", "contents": "{LAUNCH_MEDIA}"},
85 | { "trigger": "LAUNCH_APP1 Send Key List", "contents": "{LAUNCH_APP1}"},
86 | { "trigger": "LAUNCH_APP2 Send Key List", "contents": "{LAUNCH_APP2}"},
87 | { "trigger": "OEM_102 Send Key List", "contents": "{OEM_102}"},
88 | ]
89 | }
--------------------------------------------------------------------------------
/Completions/Snippets.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.autoit",
3 | "completions": [{
4 | "trigger": "Func",
5 | "contents": "Func ${1:NameFunc}()\n\n\t${2}\n\nEndFunc"
6 | }, {
7 | "trigger": "If",
8 | "contents": "If ( ${1:true} ) Then\n\n\t${2}\n\nEndIf"
9 | }, {
10 | "trigger": "Ternary",
11 | "contents": "${1:\\$variable} = ( ${2:\\$a == \\$b} ) ? ${3:true} : ${4:false}"
12 | }, {
13 | "trigger": "Switch",
14 | "contents": "Switch (${1:\\$variable})\n\tCase ${2:6 To 11}\n\t\t${3:true}\n\tCase ${4:12 To 17}\n\t\t${5:true}\n\tCase Else\n\t\t${6:false}\nEndSwitch"
15 | }, {
16 | "trigger": "While",
17 | "contents": "While ( ${1:true} )\n\n\t${2}\n\nWEnd"
18 | }, {
19 | "trigger": "ForInNext",
20 | "contents": "For ${1:\\$vElement} In ${2:\\$aArray}\n\n\t${3:ConsoleWrite(\\$vElement)}\n\nNext"
21 | }, {
22 | "trigger": "ForToStepNext",
23 | "contents": "For \\$${1:i} = ${2:0} To ${3:1} Step ${4:+1}\n\n\t${5:ConsoleWrite(\\$i)}\n\nNext"
24 | }, {
25 | "trigger": "#cs",
26 | "contents": "#cs\n\t${1}\n#ce"
27 | }, {
28 | "trigger": "Do...Until",
29 | "contents": "Do\n\n\t${1}\n\nUntil ( ${2:false} )"
30 | }, {
31 | "trigger": "Region...EndRegion",
32 | "contents": "#Region\n\n\t${1}\n\n#EndRegion"
33 | }]
34 | }
--------------------------------------------------------------------------------
/Completions/WindowMessageCodes.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.autoit",
3 | "completions": [
4 | { "trigger": "WM_ACTIVATE", "contents": "WM_ACTIVATE" },
5 | { "trigger": "WM_ACTIVATEAPP", "contents": "WM_ACTIVATEAPP" },
6 | { "trigger": "WM_AFXFIRST", "contents": "WM_AFXFIRST" },
7 | { "trigger": "WM_AFXLAST", "contents": "WM_AFXLAST" },
8 | { "trigger": "WM_APP", "contents": "WM_APP" },
9 | { "trigger": "WM_APPCOMMAND", "contents": "WM_APPCOMMAND" },
10 | { "trigger": "WM_ASKCBFORMATNAME", "contents": "WM_ASKCBFORMATNAME" },
11 | { "trigger": "WM_CANCELJOURNAL", "contents": "WM_CANCELJOURNAL" },
12 | { "trigger": "WM_CANCELMODE", "contents": "WM_CANCELMODE" },
13 | { "trigger": "WM_CAPTURECHANGED", "contents": "WM_CAPTURECHANGED" },
14 | { "trigger": "WM_CHANGECBCHAIN", "contents": "WM_CHANGECBCHAIN" },
15 | { "trigger": "WM_CHANGEUISTATE", "contents": "WM_CHANGEUISTATE" },
16 | { "trigger": "WM_CHAR", "contents": "WM_CHAR" },
17 | { "trigger": "WM_CHARTOITEM", "contents": "WM_CHARTOITEM" },
18 | { "trigger": "WM_CHILDACTIVATE", "contents": "WM_CHILDACTIVATE" },
19 | { "trigger": "WM_CLEAR", "contents": "WM_CLEAR" },
20 | { "trigger": "WM_CLOSE", "contents": "WM_CLOSE" },
21 | { "trigger": "WM_COMMAND", "contents": "WM_COMMAND" },
22 | { "trigger": "WM_COMMNOTIFY", "contents": "WM_COMMNOTIFY" },
23 | { "trigger": "WM_COMPACTING", "contents": "WM_COMPACTING" },
24 | { "trigger": "WM_COMPAREITEM", "contents": "WM_COMPAREITEM" },
25 | { "trigger": "WM_CONTEXTMENU", "contents": "WM_CONTEXTMENU" },
26 | { "trigger": "WM_COPY", "contents": "WM_COPY" },
27 | { "trigger": "WM_COPYDATA", "contents": "WM_COPYDATA" },
28 | { "trigger": "WM_CREATE", "contents": "WM_CREATE" },
29 | { "trigger": "WM_CTLCOLORBTN", "contents": "WM_CTLCOLORBTN" },
30 | { "trigger": "WM_CTLCOLORDLG", "contents": "WM_CTLCOLORDLG" },
31 | { "trigger": "WM_CTLCOLOREDIT", "contents": "WM_CTLCOLOREDIT" },
32 | { "trigger": "WM_CTLCOLORLISTBOX", "contents": "WM_CTLCOLORLISTBOX" },
33 | { "trigger": "WM_CTLCOLORMSGBOX", "contents": "WM_CTLCOLORMSGBOX" },
34 | { "trigger": "WM_CTLCOLORSCROLLBAR", "contents": "WM_CTLCOLORSCROLLBAR" },
35 | { "trigger": "WM_CTLCOLORSTATIC", "contents": "WM_CTLCOLORSTATIC" },
36 | { "trigger": "WM_CUT", "contents": "WM_CUT" },
37 | { "trigger": "WM_DEADCHAR", "contents": "WM_DEADCHAR" },
38 | { "trigger": "WM_DELETEITEM", "contents": "WM_DELETEITEM" },
39 | { "trigger": "WM_DESTROY", "contents": "WM_DESTROY" },
40 | { "trigger": "WM_DESTROYCLIPBOARD", "contents": "WM_DESTROYCLIPBOARD" },
41 | { "trigger": "WM_DEVICECHANGE", "contents": "WM_DEVICECHANGE" },
42 | { "trigger": "WM_DEVMODECHANGE", "contents": "WM_DEVMODECHANGE" },
43 | { "trigger": "WM_DISPLAYCHANGE", "contents": "WM_DISPLAYCHANGE" },
44 | { "trigger": "WM_DRAWCLIPBOARD", "contents": "WM_DRAWCLIPBOARD" },
45 | { "trigger": "WM_DRAWITEM", "contents": "WM_DRAWITEM" },
46 | { "trigger": "WM_DROPFILES", "contents": "WM_DROPFILES" },
47 | { "trigger": "WM_ENABLE", "contents": "WM_ENABLE" },
48 | { "trigger": "WM_ENDSESSION", "contents": "WM_ENDSESSION" },
49 | { "trigger": "WM_ENTERIDLE", "contents": "WM_ENTERIDLE" },
50 | { "trigger": "WM_ENTERMENULOOP", "contents": "WM_ENTERMENULOOP" },
51 | { "trigger": "WM_ENTERSIZEMOVE", "contents": "WM_ENTERSIZEMOVE" },
52 | { "trigger": "WM_ERASEBKGND", "contents": "WM_ERASEBKGND" },
53 | { "trigger": "WM_EXITMENULOOP", "contents": "WM_EXITMENULOOP" },
54 | { "trigger": "WM_EXITSIZEMOVE", "contents": "WM_EXITSIZEMOVE" },
55 | { "trigger": "WM_FONTCHANGE", "contents": "WM_FONTCHANGE" },
56 | { "trigger": "WM_GETDLGCODE", "contents": "WM_GETDLGCODE" },
57 | { "trigger": "WM_GETFONT", "contents": "WM_GETFONT" },
58 | { "trigger": "WM_GETHOTKEY", "contents": "WM_GETHOTKEY" },
59 | { "trigger": "WM_GETICON", "contents": "WM_GETICON" },
60 | { "trigger": "WM_GETMINMAXINFO", "contents": "WM_GETMINMAXINFO" },
61 | { "trigger": "WM_GETOBJECT", "contents": "WM_GETOBJECT" },
62 | { "trigger": "WM_GETTEXT", "contents": "WM_GETTEXT" },
63 | { "trigger": "WM_GETTEXTLENGTH", "contents": "WM_GETTEXTLENGTH" },
64 | { "trigger": "WM_HANDHELDFIRST", "contents": "WM_HANDHELDFIRST" },
65 | { "trigger": "WM_HANDHELDLAST", "contents": "WM_HANDHELDLAST" },
66 | { "trigger": "WM_HELP", "contents": "WM_HELP" },
67 | { "trigger": "WM_HOTKEY", "contents": "WM_HOTKEY" },
68 | { "trigger": "WM_HSCROLL", "contents": "WM_HSCROLL" },
69 | { "trigger": "WM_HSCROLLCLIPBOARD", "contents": "WM_HSCROLLCLIPBOARD" },
70 | { "trigger": "WM_ICONERASEBKGND", "contents": "WM_ICONERASEBKGND" },
71 | { "trigger": "WM_IME_CHAR", "contents": "WM_IME_CHAR" },
72 | { "trigger": "WM_IME_COMPOSITION", "contents": "WM_IME_COMPOSITION" },
73 | { "trigger": "WM_IME_COMPOSITIONFULL", "contents": "WM_IME_COMPOSITIONFULL" },
74 | { "trigger": "WM_IME_CONTROL", "contents": "WM_IME_CONTROL" },
75 | { "trigger": "WM_IME_ENDCOMPOSITION", "contents": "WM_IME_ENDCOMPOSITION" },
76 | { "trigger": "WM_IME_KEYDOWN", "contents": "WM_IME_KEYDOWN" },
77 | { "trigger": "WM_IME_KEYLAST", "contents": "WM_IME_KEYLAST" },
78 | { "trigger": "WM_IME_KEYUP", "contents": "WM_IME_KEYUP" },
79 | { "trigger": "WM_IME_NOTIFY", "contents": "WM_IME_NOTIFY" },
80 | { "trigger": "WM_IME_REQUEST", "contents": "WM_IME_REQUEST" },
81 | { "trigger": "WM_IME_SELECT", "contents": "WM_IME_SELECT" },
82 | { "trigger": "WM_IME_SETCONTEXT", "contents": "WM_IME_SETCONTEXT" },
83 | { "trigger": "WM_IME_STARTCOMPOSITION", "contents": "WM_IME_STARTCOMPOSITION" },
84 | { "trigger": "WM_INITDIALOG", "contents": "WM_INITDIALOG" },
85 | { "trigger": "WM_INITMENU", "contents": "WM_INITMENU" },
86 | { "trigger": "WM_INITMENUPOPUP", "contents": "WM_INITMENUPOPUP" },
87 | { "trigger": "WM_INPUT", "contents": "WM_INPUT" },
88 | { "trigger": "WM_INPUTLANGCHANGE", "contents": "WM_INPUTLANGCHANGE" },
89 | { "trigger": "WM_INPUTLANGCHANGEREQUEST", "contents": "WM_INPUTLANGCHANGEREQUEST" },
90 | { "trigger": "WM_KEYDOWN", "contents": "WM_KEYDOWN" },
91 | { "trigger": "WM_KEYFIRST", "contents": "WM_KEYFIRST" },
92 | { "trigger": "WM_KEYLAST (Windows 2000)", "contents": "WM_KEYLAST (Windows 2000)" },
93 | { "trigger": "WM_KEYLAST", "contents": "WM_KEYLAST" },
94 | { "trigger": "WM_KEYUP", "contents": "WM_KEYUP" },
95 | { "trigger": "WM_KILLFOCUS", "contents": "WM_KILLFOCUS" },
96 | { "trigger": "WM_LBUTTONDBLCLK", "contents": "WM_LBUTTONDBLCLK" },
97 | { "trigger": "WM_LBUTTONDOWN", "contents": "WM_LBUTTONDOWN" },
98 | { "trigger": "WM_LBUTTONUP", "contents": "WM_LBUTTONUP" },
99 | { "trigger": "WM_MBUTTONDBLCLK", "contents": "WM_MBUTTONDBLCLK" },
100 | { "trigger": "WM_MBUTTONDOWN", "contents": "WM_MBUTTONDOWN" },
101 | { "trigger": "WM_MBUTTONUP", "contents": "WM_MBUTTONUP" },
102 | { "trigger": "WM_MDIACTIVATE", "contents": "WM_MDIACTIVATE" },
103 | { "trigger": "WM_MDICASCADE", "contents": "WM_MDICASCADE" },
104 | { "trigger": "WM_MDICREATE", "contents": "WM_MDICREATE" },
105 | { "trigger": "WM_MDIDESTROY", "contents": "WM_MDIDESTROY" },
106 | { "trigger": "WM_MDIGETACTIVE", "contents": "WM_MDIGETACTIVE" },
107 | { "trigger": "WM_MDIICONARRANGE", "contents": "WM_MDIICONARRANGE" },
108 | { "trigger": "WM_MDIMAXIMIZE", "contents": "WM_MDIMAXIMIZE" },
109 | { "trigger": "WM_MDINEXT", "contents": "WM_MDINEXT" },
110 | { "trigger": "WM_MDIREFRESHMENU", "contents": "WM_MDIREFRESHMENU" },
111 | { "trigger": "WM_MDIRESTORE", "contents": "WM_MDIRESTORE" },
112 | { "trigger": "WM_MDISETMENU", "contents": "WM_MDISETMENU" },
113 | { "trigger": "WM_MDITILE", "contents": "WM_MDITILE" },
114 | { "trigger": "WM_MEASUREITEM", "contents": "WM_MEASUREITEM" },
115 | { "trigger": "WM_MENUCHAR", "contents": "WM_MENUCHAR" },
116 | { "trigger": "WM_MENUCOMMAND", "contents": "WM_MENUCOMMAND" },
117 | { "trigger": "WM_MENUDRAG", "contents": "WM_MENUDRAG" },
118 | { "trigger": "WM_MENUGETOBJECT", "contents": "WM_MENUGETOBJECT" },
119 | { "trigger": "WM_MENURBUTTONUP", "contents": "WM_MENURBUTTONUP" },
120 | { "trigger": "WM_MENUSELECT", "contents": "WM_MENUSELECT" },
121 | { "trigger": "WM_MOUSEACTIVATE", "contents": "WM_MOUSEACTIVATE" },
122 | { "trigger": "WM_MOUSEFIRST", "contents": "WM_MOUSEFIRST" },
123 | { "trigger": "WM_MOUSEHOVER", "contents": "WM_MOUSEHOVER" },
124 | { "trigger": "WM_MOUSELAST(2K,XP,2k3)", "contents": "WM_MOUSELAST(2K,XP,2k3)" },
125 | { "trigger": "WM_MOUSELAST(95)", "contents": "WM_MOUSELAST(95)" },
126 | { "trigger": "WM_MOUSELAST(NT4,98)", "contents": "WM_MOUSELAST(NT4,98)" },
127 | { "trigger": "WM_MOUSELEAVE", "contents": "WM_MOUSELEAVE" },
128 | { "trigger": "WM_MOUSEMOVE", "contents": "WM_MOUSEMOVE" },
129 | { "trigger": "WM_MOUSEWHEEL", "contents": "WM_MOUSEWHEEL" },
130 | { "trigger": "WM_MOVE", "contents": "WM_MOVE" },
131 | { "trigger": "WM_MOVING", "contents": "WM_MOVING" },
132 | { "trigger": "WM_NCACTIVATE", "contents": "WM_NCACTIVATE" },
133 | { "trigger": "WM_NCCALCSIZE", "contents": "WM_NCCALCSIZE" },
134 | { "trigger": "WM_NCCREATE", "contents": "WM_NCCREATE" },
135 | { "trigger": "WM_NCDESTROY", "contents": "WM_NCDESTROY" },
136 | { "trigger": "WM_NCHITTEST", "contents": "WM_NCHITTEST" },
137 | { "trigger": "WM_NCLBUTTONDBLCLK", "contents": "WM_NCLBUTTONDBLCLK" },
138 | { "trigger": "WM_NCLBUTTONDOWN", "contents": "WM_NCLBUTTONDOWN" },
139 | { "trigger": "WM_NCLBUTTONUP", "contents": "WM_NCLBUTTONUP" },
140 | { "trigger": "WM_NCMBUTTONDBLCLK", "contents": "WM_NCMBUTTONDBLCLK" },
141 | { "trigger": "WM_NCMBUTTONDOWN", "contents": "WM_NCMBUTTONDOWN" },
142 | { "trigger": "WM_NCMBUTTONUP", "contents": "WM_NCMBUTTONUP" },
143 | { "trigger": "WM_NCMOUSEHOVER", "contents": "WM_NCMOUSEHOVER" },
144 | { "trigger": "WM_NCMOUSELEAVE", "contents": "WM_NCMOUSELEAVE" },
145 | { "trigger": "WM_NCMOUSEMOVE", "contents": "WM_NCMOUSEMOVE" },
146 | { "trigger": "WM_NCPAINT", "contents": "WM_NCPAINT" },
147 | { "trigger": "WM_NCRBUTTONDBLCLK", "contents": "WM_NCRBUTTONDBLCLK" },
148 | { "trigger": "WM_NCRBUTTONDOWN", "contents": "WM_NCRBUTTONDOWN" },
149 | { "trigger": "WM_NCRBUTTONUP", "contents": "WM_NCRBUTTONUP" },
150 | { "trigger": "WM_NCXBUTTONDBLCLK", "contents": "WM_NCXBUTTONDBLCLK" },
151 | { "trigger": "WM_NCXBUTTONDOWN", "contents": "WM_NCXBUTTONDOWN" },
152 | { "trigger": "WM_NCXBUTTONUP", "contents": "WM_NCXBUTTONUP" },
153 | { "trigger": "WM_NEXTDLGCTL", "contents": "WM_NEXTDLGCTL" },
154 | { "trigger": "WM_NEXTMENU", "contents": "WM_NEXTMENU" },
155 | { "trigger": "WM_NOTIFY", "contents": "WM_NOTIFY" },
156 | { "trigger": "WM_NOTIFYFORMAT", "contents": "WM_NOTIFYFORMAT" },
157 | { "trigger": "WM_NULL", "contents": "WM_NULL" },
158 | { "trigger": "WM_PAINT", "contents": "WM_PAINT" },
159 | { "trigger": "WM_PAINTCLIPBOARD", "contents": "WM_PAINTCLIPBOARD" },
160 | { "trigger": "WM_PAINTICON", "contents": "WM_PAINTICON" },
161 | { "trigger": "WM_PALETTECHANGED", "contents": "WM_PALETTECHANGED" },
162 | { "trigger": "WM_PALETTEISCHANGING", "contents": "WM_PALETTEISCHANGING" },
163 | { "trigger": "WM_PARENTNOTIFY", "contents": "WM_PARENTNOTIFY" },
164 | { "trigger": "WM_PASTE", "contents": "WM_PASTE" },
165 | { "trigger": "WM_PENWINFIRST", "contents": "WM_PENWINFIRST" },
166 | { "trigger": "WM_PENWINLAST", "contents": "WM_PENWINLAST" },
167 | { "trigger": "WM_POWER", "contents": "WM_POWER" },
168 | { "trigger": "WM_POWERBROADCAST", "contents": "WM_POWERBROADCAST" },
169 | { "trigger": "WM_PRINT", "contents": "WM_PRINT" },
170 | { "trigger": "WM_PRINTCLIENT", "contents": "WM_PRINTCLIENT" },
171 | { "trigger": "WM_QUERYDRAGICON", "contents": "WM_QUERYDRAGICON" },
172 | { "trigger": "WM_QUERYENDSESSION", "contents": "WM_QUERYENDSESSION" },
173 | { "trigger": "WM_QUERYNEWPALETTE", "contents": "WM_QUERYNEWPALETTE" },
174 | { "trigger": "WM_QUERYOPEN", "contents": "WM_QUERYOPEN" },
175 | { "trigger": "WM_QUERYUISTATE", "contents": "WM_QUERYUISTATE" },
176 | { "trigger": "WM_QUEUESYNC", "contents": "WM_QUEUESYNC" },
177 | { "trigger": "WM_QUIT", "contents": "WM_QUIT" },
178 | { "trigger": "WM_RBUTTONDBLCLK", "contents": "WM_RBUTTONDBLCLK" },
179 | { "trigger": "WM_RBUTTONDOWN", "contents": "WM_RBUTTONDOWN" },
180 | { "trigger": "WM_RBUTTONUP", "contents": "WM_RBUTTONUP" },
181 | { "trigger": "WM_RENDERALLFORMATS", "contents": "WM_RENDERALLFORMATS" },
182 | { "trigger": "WM_RENDERFORMAT", "contents": "WM_RENDERFORMAT" },
183 | { "trigger": "WM_SETCURSOR", "contents": "WM_SETCURSOR" },
184 | { "trigger": "WM_SETFOCUS", "contents": "WM_SETFOCUS" },
185 | { "trigger": "WM_SETFONT", "contents": "WM_SETFONT" },
186 | { "trigger": "WM_SETHOTKEY", "contents": "WM_SETHOTKEY" },
187 | { "trigger": "WM_SETICON", "contents": "WM_SETICON" },
188 | { "trigger": "WM_SETREDRAW", "contents": "WM_SETREDRAW" },
189 | { "trigger": "WM_SETTEXT", "contents": "WM_SETTEXT" },
190 | { "trigger": "WM_SETTINGCHANGE", "contents": "WM_SETTINGCHANGE" },
191 | { "trigger": "WM_SHOWWINDOW", "contents": "WM_SHOWWINDOW" },
192 | { "trigger": "WM_SIZE", "contents": "WM_SIZE" },
193 | { "trigger": "WM_SIZECLIPBOARD", "contents": "WM_SIZECLIPBOARD" },
194 | { "trigger": "WM_SIZING", "contents": "WM_SIZING" },
195 | { "trigger": "WM_SPOOLERSTATUS", "contents": "WM_SPOOLERSTATUS" },
196 | { "trigger": "WM_STYLECHANGED", "contents": "WM_STYLECHANGED" },
197 | { "trigger": "WM_STYLECHANGING", "contents": "WM_STYLECHANGING" },
198 | { "trigger": "WM_SYNCPAINT", "contents": "WM_SYNCPAINT" },
199 | { "trigger": "WM_SYSCHAR", "contents": "WM_SYSCHAR" },
200 | { "trigger": "WM_SYSCOLORCHANGE", "contents": "WM_SYSCOLORCHANGE" },
201 | { "trigger": "WM_SYSCOMMAND", "contents": "WM_SYSCOMMAND" },
202 | { "trigger": "WM_SYSDEADCHAR", "contents": "WM_SYSDEADCHAR" },
203 | { "trigger": "WM_SYSKEYDOWN", "contents": "WM_SYSKEYDOWN" },
204 | { "trigger": "WM_SYSKEYUP", "contents": "WM_SYSKEYUP" },
205 | { "trigger": "WM_TABLET_FIRST", "contents": "WM_TABLET_FIRST" },
206 | { "trigger": "WM_TABLET_LAST", "contents": "WM_TABLET_LAST" },
207 | { "trigger": "WM_TCARD", "contents": "WM_TCARD" },
208 | { "trigger": "WM_THEMECHANGED", "contents": "WM_THEMECHANGED" },
209 | { "trigger": "WM_TIMECHANGE", "contents": "WM_TIMECHANGE" },
210 | { "trigger": "WM_TIMER", "contents": "WM_TIMER" },
211 | { "trigger": "WM_UNDO", "contents": "WM_UNDO" },
212 | { "trigger": "WM_UNICHAR", "contents": "WM_UNICHAR" },
213 | { "trigger": "WM_UNINITMENUPOPUP", "contents": "WM_UNINITMENUPOPUP" },
214 | { "trigger": "WM_UPDATEUISTATE", "contents": "WM_UPDATEUISTATE" },
215 | { "trigger": "WM_USER", "contents": "WM_USER" },
216 | { "trigger": "WM_USERCHANGED", "contents": "WM_USERCHANGED" },
217 | { "trigger": "WM_VKEYTOITEM", "contents": "WM_VKEYTOITEM" },
218 | { "trigger": "WM_VSCROLL", "contents": "WM_VSCROLL" },
219 | { "trigger": "WM_VSCROLLCLIPBOARD", "contents": "WM_VSCROLLCLIPBOARD" },
220 | { "trigger": "WM_WINDOWPOSCHANGED", "contents": "WM_WINDOWPOSCHANGED" },
221 | { "trigger": "WM_WINDOWPOSCHANGING", "contents": "WM_WINDOWPOSCHANGING" },
222 | { "trigger": "WM_WININICHANGE", "contents": "WM_WININICHANGE" },
223 | { "trigger": "WM_WTSSESSION_CHANGE", "contents": "WM_WTSSESSION_CHANGE" },
224 | { "trigger": "WM_XBUTTONDBLCLK", "contents": "WM_XBUTTONDBLCLK" },
225 | { "trigger": "WM_XBUTTONDOWN", "contents": "WM_XBUTTONDOWN" },
226 | { "trigger": "WM_XBUTTONUP", "contents": "WM_XBUTTONUP" }
227 | ]
228 | }
229 |
--------------------------------------------------------------------------------
/Include_Helper.au3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AutoIt/SublimeAutoItScript/2b2e950c7edb47da76d335fb205593bc83987a19/Include_Helper.au3
--------------------------------------------------------------------------------
/Include_Helper.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AutoIt/SublimeAutoItScript/2b2e950c7edb47da76d335fb205593bc83987a19/Include_Helper.ico
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2016 AutoIt
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/Main.sublime-menu:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "caption": "Tools",
4 | "mnemonic": "T",
5 | "id": "tools",
6 | "children":
7 | [
8 | { "caption": "-", "id": "packagecommands" },
9 | { "command": "autoittidy", "caption": "AutoIt - Tidy", "mnemonic": "T"},
10 | { "command": "autoitincludehelper", "caption": "AutoIt - IncludeHelper", "mnemonic": "I"},
11 | { "command": "autoitinfo", "caption": "AutoIt - Info", "mnemonic": "f"},
12 | { "command": "autoithelp", "caption": "AutoIt - Help", "mnemonic": "H"}
13 | ]
14 | },
15 | {
16 | "caption": "Preferences",
17 | "id": "preferences",
18 | "children":
19 | [
20 | {
21 | "caption": "Package Settings",
22 | "mnemonic": "P",
23 | "id": "package-settings",
24 | "children":
25 | [
26 | {
27 | "caption": "AutoIt",
28 | "children":
29 | [
30 | {
31 | "command": "open_file",
32 | "args": {"file": "${packages}/AutoItScript/AutoIt.sublime-settings"},
33 | "caption": "AutoIt Settings - Default"
34 | },
35 | {
36 | "command": "open_file",
37 | "args": {"file": "${packages}/User/AutoIt.sublime-settings"},
38 | "caption": "AutoIt Settings - User"
39 | }
40 | ]
41 | }
42 | ]
43 | }
44 | ]
45 | }
46 | ]
47 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SublimeAutoItScript - Package for Sublime Text 2/3
2 | AutoItScript Au3 language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build systems for run and compile, Tidy command, IncludeHelper command.
3 |
4 | ## Package Installation
5 | * Manual method: Download ZIP from github. Extract the files to [Sublime_Data_Dir](http://docs.sublimetext.info/en/latest/basic_concepts.html#the-data-directory)\Packages\AutoItScript
6 | * Automatic method: Use [wbond package control](https://sublime.wbond.net/).
7 |
8 | ## Key Bindings
9 | If you have the default Sublime keybindings intact, then:
10 | * Ctrl+B will run the current file (with AutoIt3.exe)
11 | * Ctrl+Shift+B will compile the current file (with Aut2Exe.exe)
12 | * Alt+TT will invoke Tidy on the current file (with Tidy.exe).
13 | * Alt+TI will invoke IncludeHelper on the current file.
14 | * Alt+TF will invoke AutoIt Window Info.
15 | * Alt+TH will invoke AutoIt Help.
16 |
17 | ## Advanced Configuration
18 | For the build systems and Tidy command, if you have a non-default installation you will need to set your specific path to AutoIt3.exe, Aut2Exe.exe, and Tidy.exe in a file named AutoIt.sublime-settings in your User folder. You can access the settings file from Menu `Preferences > Package Settings > AutoIt`. You should make a copy of `AutoIt Settings - Default` at `AutoIt Settings - User` since then your settings file in your User folder will not get overwritten when this package updates.
19 |
20 | ## Goto-documentation Integration
21 | Instructions on how to configure goto-documentation plugin for AutoIt (F1 Hotkey will take you to documentation for word under cursor):
22 | * https://github.com/AutoIt/AutoItScript/blob/master/goto-documentation_instructions.md
23 |
24 | ## Credits
25 | * Syntax rules: http://sublime-text-community-packages.googlecode.com/svn/pages/AutoIt.html
26 | * Snippets: http://www.autoitscript.com/forum/topic/148016-sublimetext/page-3#entry1080276
27 | * IncludeHelper AZJIO: http://www.autoitscript.com/forum/topic/130468-constants-helper/#entry908064
28 |
--------------------------------------------------------------------------------
/autoitbuild.py:
--------------------------------------------------------------------------------
1 | from __future__ import print_function
2 | import sublime, sublime_plugin
3 | import subprocess
4 | import os
5 |
6 | # The autoitbuild command is called as target by AutoIt.sublime-build
7 | class autoitbuild(sublime_plugin.WindowCommand):
8 | def run(self):
9 | filepath = self.window.active_view().file_name()
10 | AutoItExePath = sublime.load_settings("AutoIt.sublime-settings").get("AutoItExePath")
11 | cmd = [AutoItExePath, "/ErrorStdOut", filepath]
12 | self.window.run_command("exec", {"cmd": cmd})
13 |
14 | class autoitcompile(sublime_plugin.WindowCommand):
15 | def run(self):
16 | filepath = self.window.active_view().file_name()
17 | AutoItCompilerPath = sublime.load_settings("AutoIt.sublime-settings").get("AutoItCompilerPath")
18 | cmd = [AutoItCompilerPath, "/in", filepath]
19 | self.window.run_command("exec", {"cmd": cmd})
20 |
21 | class autoittidy(sublime_plugin.WindowCommand):
22 | def run(self):
23 | self.window.run_command("save")
24 | filepath = self.window.active_view().file_name()
25 | TidyExePath = sublime.load_settings("AutoIt.sublime-settings").get("TidyExePath")
26 | tidycmd = [TidyExePath, filepath]
27 | try:
28 | tidyprocess = subprocess.Popen(tidycmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
29 | tidyoutput = tidyprocess.communicate()[0].rstrip()
30 | tidyoutputskipfirstline = "".join(tidyoutput.splitlines(True)[1:])
31 | self.window.run_command("revert")
32 | print("------------ Beginning AutoIt Tidy ------------")
33 | print(tidyoutput)
34 | if("Tidy Error" in tidyoutput):
35 | sublime.active_window().run_command("show_panel", {"panel": "console"})
36 | sublime.status_message("### Tidy Errors : Please See Console")
37 | else:
38 | sublime.status_message(tidyoutputskipfirstline)
39 | except Exception as e:
40 | sublime.active_window().run_command("show_panel", {"panel": "console"})
41 | print("------------ ERROR: Python exception trying to run Tidy ------------")
42 | print("TidyCmd was: " + " ".join(tidycmd))
43 | print("Error {0}".format(str(e)))
44 | sublime.status_message("### EXCEPTION: " + str(e))
45 |
46 | class autoitincludehelper(sublime_plugin.WindowCommand):
47 | def run(self):
48 | self.window.run_command("save")
49 |
50 | filepath = self.window.active_view().file_name()
51 | AutoItExePath = sublime.load_settings("AutoIt.sublime-settings").get("AutoItExePath")
52 | AutoItIncludeFolder = os.path.dirname(AutoItExePath) + "\\Include"
53 |
54 | IncludeHelperAU3Path = sublime.load_settings("AutoIt.sublime-settings").get("IncludeHelperAU3Path")
55 | if (IncludeHelperAU3Path is None):
56 | IncludeHelperAU3Path = "{PACKAGE_PATH}\\AutoItScript\\Include_Helper.au3"
57 | IncludeHelperAU3Path = IncludeHelperAU3Path.replace("{PACKAGE_PATH}", sublime.packages_path())
58 |
59 | AutoItIncludeCmd = [AutoItExePath, IncludeHelperAU3Path, filepath, AutoItIncludeFolder]
60 |
61 | try:
62 | subprocess.call(AutoItIncludeCmd)
63 | self.window.run_command("revert")
64 | sublime.status_message("AutoIt IncludeHelper Finished")
65 | except Exception as e:
66 | sublime.active_window().run_command("show_panel", {"panel": "console"})
67 | print("------------ ERROR: Python exception trying to run following command ------------")
68 | print(AutoItIncludeCmd)
69 | print("Error {0}".format(str(e)))
70 |
71 | class autoitinfo(sublime_plugin.WindowCommand):
72 | def run(self):
73 | AutoItInfo = sublime.load_settings("AutoIt.sublime-settings").get("AutoItInfo")
74 |
75 | try:
76 | os.startfile(AutoItInfo)
77 | except Exception as e:
78 | sublime.active_window().run_command("show_panel", {"panel": "console"})
79 | print("------------ ERROR: Python exception trying to run following command ------------")
80 | print("Error {0}".format(str(e)))
81 |
82 | class autoithelp(sublime_plugin.WindowCommand):
83 | def run(self):
84 | AutoItHelp = sublime.load_settings("AutoIt.sublime-settings").get("AutoItHelp")
85 |
86 | try:
87 | os.startfile(AutoItHelp)
88 | except Exception as e:
89 | sublime.active_window().run_command("show_panel", {"panel": "console"})
90 | print("------------ ERROR: Python exception trying to run following command ------------")
91 | print("Error {0}".format(str(e)))
92 |
--------------------------------------------------------------------------------
/goto-documentation_instructions.md:
--------------------------------------------------------------------------------
1 | ## How to map F1 Key in SublimeText to open AutoIt documentation for the word under the keyboard cusor.
2 |
3 |
4 | ### 1. Install goto-documentation plugin
5 |
6 | [Download ZIP from the goto-documentation github page](https://github.com/kemayo/sublime-text-2-goto-documentation) and unzip files to directory: `Sublime_Data_Dir\Packages\goto-documentation`.
7 |
8 | * Note: although not specified, goto-documentation plugin works fine with both ST2 and ST3.
9 | * If you need help finding your Sublime_Data_Dir, see [here](http://docs.sublimetext.info/en/latest/basic_concepts.html#the-data-directory).
10 |
11 | ### 2. Set key binding for F1
12 | To the file `Sublime_Data_Dir\Packages\User\Default (Windows).sublime-keymap`, add:
13 |
14 | { "keys": ["f1"], "command": "goto_documentation" },
15 |
16 | ### 3. Set goto-documentation command for autoit scope
17 | To the file `Sublime_Data_Dir\Packages\goto-documentation\gotodocumentation.py`, add the following indented under "class GotoDocumentationCommand" (make sure it is correctly indented under the class since python is indent-sensitive).
18 |
19 | * To have it open in the online documentation
20 |
21 | def autoit_doc(self, keyword, scope):
22 | open_url("http://www.autoitscript.com/autoit3/docs/functions/%s.htm" % keyword)
23 |
24 | * To have it open in the help file documentation
25 |
26 | def autoit_doc(self, keyword, scope):
27 | cmd = ["hh.exe", r"mk:@MSITStore:C:\Program Files\AutoIt3\AutoIt3.chm::/html/functions/%s.htm" % keyword]
28 | subprocess.Popen(cmd)
29 |
--------------------------------------------------------------------------------