-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcommands.ahk2
40 lines (29 loc) · 1.29 KB
/
commands.ahk2
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
#Requires AutoHotkey v2.0
; Tests for features provided by thqby's extension
; todo Debug AHK and Attach is untested for now
; todo Debug AHK with Params is untested for now
;* Export AHK Symbols should give ~45 lines for this
; And open in an unsaved new editor group
MyCommandMsgBox(text) {
MsgBox(text)
}
;* Stop AHK Script should work after starting via Run AHK Script
; Auto-closes MsgBox windows as well :)
MyCommandMsgBox("Hello world!")
MyCommandMsgBox("Hello again!")
;* Add Doc Comment should add and then go to doc comment
; todo Known issue with two args will be reported later
AddDocComment(arg1, arg2) {
; do nothing
}
;* Update File Version Info should update the file version info ;)
; first, remove the ahk2exe version directive below
; then, when running it creates block comment, doesn't save, puts cursor at end of first line
; if block comment or directive exists, running updates version everywhere via quick pick
;@Ahk2Exe-SetVersion 2
;* Switch AHK Version should switch and ignore the `Requires` directive
; todo Select AHK Syntaxes is untested for now
; todo Set A_ScriptDir Here is untested for now
;* Set AHK v2 Interpreter should open quick pick with installed options
; updates should reflect in workspace settings
; option should be present in status bar, bottom left