-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathahk.api
More file actions
1367 lines (1285 loc) · 27.8 KB
/
ahk.api
File metadata and controls
1367 lines (1285 loc) · 27.8 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
( 特别注意
( 此文件编码必须为“UTF-8无BOM”!!!!!!!!!!!!!!!
( 原因是如果带BOM,那么从这里取出的中文关键字在自动完成列表中会被加上BOM。
( 而从SciTE编辑框中读到的中文又必定不带BOM,因此作比较时就会因长度不一致而判断出错,无法自动完成。
( 更新日志
( 2024.05.04 补 2020.09.02 至今新增的 A_InitialWorkingDir File.Handle A_Clipboard IsSet() VerCompare() 。
( 2024.05.04 补 对象方法对应的 Obj 开头的函数,例如 .GetCapacity() 对应 ObjGetCapacity() 。
( 2021.02.09 补 #Warn 的 Unreachable,Gui 的 Parent 参数。
( 2020.09.02 重新按顺序整理,添加更多注释,并添加漏掉的词。
( 2020.08.30 使用“( ”的形式替代“# ”注释,以便被新的自动完成功能正确加载。
( 2020.08.27 “(”“,”“空格”3个符号及后面的内容在被载入自动完成列表时会被清空。
( 2020.07.30 使用“# ”的形式替代“;”注释,可以改善输入中文“迅雷”引起的自动完成框问题(现在只显示两个空白框了)。此问题应该是激活了“Ctrl+i”功能导致的。
( 2019.12.03 根据1.1.32.00帮助文件中的更新日志,更新了从1.1.23.05到今天的变动。
( 2016.05.06 此文件中的注释也会引起自动完成,例如中文“单引号”三个字就可以引起“;更新日志”的自动完成。
( 2016.04.27 花了整整7天时间,根据1.1.23.05英文版帮助文件,反编译后逐文件逐内容手工校对3遍。保证命令、函数、“A_”变量、按键部分已经完美(包括补齐缺失、修正错误、统一名称等等),其它的(例如命令的某参数的各种选项)缺少校对途径,故只通过帮助文件的索引部分“Index.hhk”进行校对,补齐了所有索引中存在的部分,但无法保证完美。
( -----------------以下是“全局命令”-----------------
#AllowSameLineComments
#ClipboardTimeout Milliseconds
#CommentFlag NewString
#Delimiter NewChar
#DerefChar NewChar
#ErrorStdOut
#EscapeChar NewChar
#HotkeyInterval Milliseconds
#HotkeyModifierTimeout Milliseconds
( “NoMouse”和“EndChars”都是真的单词
#Hotstring NoMouse
#Hotstring NewOptions
#Hotstring EndChars NewChars
#If [Expression]
#IfTimeout Milliseconds
#IfWinActive [, WinTitle, WinText]
#IfWinExist [, WinTitle, WinText]
#IfWinNotActive [, WinTitle, WinText]
#IfWinNotExist [, WinTitle, WinText]
#Include FileOrDirName|<LibName>
#IncludeAgain FileOrDirName
#InputLevel [Level]
#InstallKeybdHook
#InstallMouseHook
#KeyHistory MaxEvents
#LTrim [On|Off]
#MaxHotkeysPerInterval Value
#MaxMem Megabytes
#MaxThreads Value
#MaxThreadsBuffer On|Off
#MaxThreadsPerHotkey Value
#MenuMaskKey KeyName
#NoEnv
#NoTrayIcon
#Persistent
#Requires Requirement
#SingleInstance [Force|Ignore|Off]
#UseHook [On|Off]
#Warn [, UseUnsetLocal|UseUnsetGlobal|UseEnv|LocalSameAsGlobal|ClassOverwrite|Unreachable|All, MsgBox|StdOut|OutputDebug|Off]
#WinActivateForce
( -----------------以上是“全局命令”-----------------
( -----------------以下是“流程”-----------------
if Var = Value
if Var [not] between Low and High
if Var [not] in Value1, Value2, ..., Value_n
if Var [not] contains Value1, Value2, ..., Value_n
if Var is [not] integer|float|number|digit|xdigit|alpha|upper|lower|alnum|space|time
if (Expression)
else
IfEqual , Var, Value
IfExist , FilePattern
IfGreater , Var, Value
IfGreaterOrEqual , Var, Value
IfInString , Var, SearchString
IfLess , Var, Value
IfLessOrEqual , Var, Value
IfMsgBox , Yes|No|OK|Cancel|Abort|Ignore|Retry|Continue|TryAgain|Timeout
IfNotEqual , Var, Value
IfNotExist , FilePattern
IfNotInString , Var, SearchString
IfWinActive [, WinTitle, WinText, ExcludeTitle, ExcludeText]
IfWinExist [, WinTitle, WinText, ExcludeTitle, ExcludeText]
IfWinNotActive [, WinTitle, WinText, ExcludeTitle, ExcludeText]
IfWinNotExist [, WinTitle, WinText, ExcludeTitle, ExcludeText]
for Key [,Value] in Obj
loop [, Count]
loop, Files, FilePattern [, D|F|R]
loop, Read, InputFile [, *OutputFile]
loop, Parse, InputVar [, Delimiters, OmitChars]
loop, Reg, HKLM|HKU|HKCU|HKCR|HKCC[\\Key, K|V|R]
until (Expression)
while (Expression)
break [, LoopLabel]
continue [, LoopLabel]
try
catch [, OutputVar]
throw [, Expression]
finally
switch [, SwitchValue]
case , CaseValue
default
gosub , Label
goto , Label
return [, Expression]
( 变量的作用域
static
global
local
ByRef
class ClassName [extends BaseClassName]
Sleep , Milliseconds
SetTimer [, Label, Period|On|Off|Delete, Priority]
Critical [, On|Off]
Thread , Priority, n
Thread , NoTimers [, false]
Thread , Interrupt [, Duration, LineCount]
OnExit [, Label]
Exit [, ExitCode]
ExitApp [, ExitCode]
Pause [, On|Off|Toggle, 0|1]
Reload
( -----------------以上是“流程”-----------------
( -----------------以下是“命令”-----------------
AutoTrim , On|Off
BlockInput , On|Off|Send|Mouse|SendAndMouse|Default|MouseMove|MouseMoveOff
Click [, Value1, Value2, Value3, Value4]
ClipWait [, SecondsToWait, 1]
Control , Cmd [, Value, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlClick [, Control-or-Pos, WinTitle, WinText, WhichButton, ClickCount, NA|D|U|Pos|Xn|Yn, ExcludeTitle, ExcludeText]
ControlFocus [, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlGet , OutputVar, Cmd [, Value, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlGetFocus , OutputVar [, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlGetPos [, X, Y, Width, Height, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlGetText , OutputVar [, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlMove , Control, X, Y, Width, Height [, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlSend [, Control, Keys, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlSendRaw [, Control, Keys, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlSetText [, Control, NewText, WinTitle, WinText, ExcludeTitle, ExcludeText]
CoordMode , ToolTip|Pixel|Mouse|Caret|Menu [, Screen|Relative|Window|Client]
DetectHiddenText , On|Off
DetectHiddenWindows , On|Off
Drive , Label|Lock|Unlock|Eject [, Drive, Value]
DriveGet , OutputVar, Cmd [, Value]
DriveSpaceFree , OutputVar, Path
Edit
EnvAdd , Var, Value [, TimeUnits]
EnvDiv , Var, Value
EnvGet , OutputVar, EnvVarName
EnvMult , Var, Value
EnvSet , EnvVarName, Value
EnvSub , Var, Value [, TimeUnits]
EnvUpdate
FileAppend [, Text, *Filename, Encoding]
FileCopy , Source, Dest [, 0|1]
FileCopyDir , Source, Dest [, 0|1]
FileCreateDir , DirName
FileCreateShortcut , Target, LinkFile [, WorkingDir, Args, Description, IconFile, ShortcutKey, IconNumber, RunState]
FileDelete , FilePattern
FileEncoding [, UTF-8|UTF-16|UTF-8-RAW|UTF-16-RAW|CPnnn]
FileGetAttrib , OutputVar [, Filename]
FileGetShortcut , LinkFile [, OutTarget, OutDir, OutArgs, OutDescription, OutIcon, OutIconNum, OutRunState]
FileGetSize , OutputVar [, Filename, K|M]
FileGetTime , OutputVar [, Filename, M|C|A]
FileGetVersion , OutputVar [, Filename]
FileInstall , Source, Dest [, 0|1]
FileMove , Source, Dest [, 0|1]
FileMoveDir , Source, Dest [, 0|1|2|R]
FileRead , OutputVar, *Filename
FileReadLine , OutputVar, Filename, LineNum
FileRecycle , FilePattern
FileRecycleEmpty [, DriveLetter]
FileRemoveDir , DirName [, 0|1]
FileSelectFile , OutputVar [, Options, RootDir\\Filename, Prompt, Filter]
FileSelectFolder , OutputVar [, StartingFolder, Options, Prompt]
FileSetAttrib , Attributes [, FilePattern, 0|1|2, 0|1]
FileSetTime [, YYYYMMDDHH24MISS, FilePattern, M|C|A, 0|1|2, 0|1]
FormatTime , OutputVar [, YYYYMMDDHH24MISS, Format]
GetKeyState , OutputVar, KeyName [, P|T]
GroupActivate , GroupName [, R]
GroupAdd , GroupName [, WinTitle, WinText, Label, ExcludeTitle, ExcludeText]
GroupClose , GroupName [, A|R]
GroupDeactivate , GroupName [, R]
Gui , Sub-command [, Param2, Param3, Param4]
GuiControl , Sub-command, ControlID [, Param]
GuiControlGet , OutputVar [, Sub-command, ControlID, Param]
Hotkey , If [, Expression]
Hotkey , IfWinActive|IfExist [, WinTitle, WinText]
Hotkey , KeyName [, Label, Options]
ImageSearch , OutputVarX, OutputVarY, X1, Y1, X2, Y2, *ImageFile
IniDelete , Filename, Section [, Key]
IniRead , OutputVar, Filename [, Section, Key, Default]
IniWrite , Value, Filename, Section [, Key]
Input [, OutputVar, Options, EndKeys, MatchList]
InputBox , OutputVar [, Title, Prompt, HIDE, Width, Height, X, Y, Locale, Timeout, Default]
KeyHistory
KeyWait , KeyName [, D|L|Tn]
ListHotkeys
ListLines [, On|Off]
ListVars
Menu , MenuName, Cmd [, P3, P4, P5]
MouseClick [, WhichButton, X, Y, ClickCount, Speed, D|U, R]
MouseClickDrag , WhichButton, X1, Y1, X2, Y2 [, Speed, R]
MouseGetPos [, OutputVarX, OutputVarY, OutputVarWin, OutputVarControl, 1|2|3]
MouseMove , X, Y [, Speed, R]
MsgBox , Text
MsgBox [, Options, Title, Text, Timeout]
OutputDebug , Text
PixelGetColor , OutputVar, X, Y [, Alt|Slow|RGB]
PixelSearch , OutputVarX, OutputVarY, X1, Y1, X2, Y2, ColorID [, Variation, Fast|RGB]
PostMessage , Msg [, wParam, lParam, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
Process , Exist|Close|List|Priority|Wait|WaitClose [, PID-or-Name, Param]
Progress , Off|Param [, SubText, MainText, WinTitle, FontName]
Random , , NewSeed
Random , OutputVar [, Min, Max]
RegDelete , HKLM|HKU|HKCU|HKCR|HKCC\\SubKey [, ValueName]
RegRead , OutputVar, HKLM|HKU|HKCU|HKCR|HKCC\\SubKey [, ValueName]
RegWrite , REG_SZ|REG_EXPAND_SZ|REG_MULTI_SZ|REG_DWORD|REG_BINARY, HKLM|HKU|HKCU|HKCR|HKCC\\SubKey [, ValueName, Value]
Run , Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
RunAs [, User, Password, Domain]
RunWait , Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
Send , Keys
SendEvent , Keys
SendInput , Keys
SendLevel , Level
SendMessage , Msg [, wParam, lParam, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
SendMode , Input|Play|Event|InputThenPlay
SendPlay , Keys
SendRaw , Keys
SetBatchLines , -1|20ms|LineCount
SetCapsLockState [, On|Off|AlwaysOn|AlwaysOff]
SetControlDelay , Milliseconds
SetDefaultMouseSpeed , Speed
SetEnv , Var, Value
SetFormat , IntegerFast|FloatFast, TotalWidth.DecimalPlaces|H|D
SetKeyDelay [, Milliseconds, PressDuration, Play]
SetMouseDelay , Milliseconds [, Play]
SetNumLockState [, On|Off|AlwaysOn|AlwaysOff]
SetRegView , 32|64|Default
SetScrollLockState [, On|Off|AlwaysOn|AlwaysOff]
SetStoreCapslockMode , On|Off
SetTitleMatchMode , Fast|Slow|RegEx|1|2|3
SetWinDelay , Milliseconds
SetWorkingDir , DirName
Shutdown , Code
Sort , VarName [, Options]
SoundBeep [, 37-to-32767, Milliseconds]
SoundGet , OutputVar [, ComponentType, ControlType, DeviceNumber]
SoundGetWaveVolume , OutputVar [, DeviceNumber]
SoundPlay , Filename [, Wait]
SoundSet , NewSetting [, ComponentType, ControlType, DeviceNumber]
SoundSetWaveVolume , Percent [, DeviceNumber]
SplashImage [, Off|ImageFile, Options, SubText, MainText, WinTitle, FontName]
SplashTextOff
SplashTextOn [, Width, Height, Title, Text]
SplitPath , InputVar [, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive]
StatusBarGetText , OutputVar [, Part, WinTitle, WinText, ExcludeTitle, ExcludeText]
StatusBarWait [, BarText, Seconds, Part, WinTitle, WinText, Interval, ExcludeTitle, ExcludeText]
StringCaseSense , On|Off|Locale
StringGetPos , OutputVar, InputVar, SearchText [, L|R|Ln|Rn, Offset]
StringLeft , OutputVar, InputVar, Count
StringLen , OutputVar, InputVar
StringLower , OutputVar, InputVar [, T]
StringMid , OutputVar, InputVar, StartChar [, Count, L]
StringReplace , OutputVar, InputVar, SearchText [, ReplaceText, All]
StringRight , OutputVar, InputVar, Count
StringSplit , OutputArray, InputVar [, Delimiters, OmitChars]
StringTrimLeft , OutputVar, InputVar, Count
StringTrimRight , OutputVar, InputVar, Count
StringUpper , OutputVar, InputVar [, T]
Suspend [, On|Off|Toggle|Permit]
SysGet , OutputVar, Sub-command [, Param]
ToolTip [, Text, X, Y, WhichToolTip]
Transform , OutputVar, Cmd, Value1 [, Value2]
TrayTip [, Title, Text, Seconds, Options]
URLDownloadToFile , URL, Filename
WinActivate [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinActivateBottom [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinClose [, WinTitle, WinText, SecondsToWait, ExcludeTitle, ExcludeText]
WinGet , OutputVar [, Cmd, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinGetActiveStats , Title, Width, Height, X, Y
WinGetActiveTitle , OutputVar
WinGetClass , OutputVar [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinGetPos [, X, Y, Width, Height, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinGetText , OutputVar [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinGetTitle , OutputVar [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinHide [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinKill [, WinTitle, WinText, SecondsToWait, ExcludeTitle, ExcludeText]
WinMaximize [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinMenuSelectItem , WinTitle, WinText, Menu [, SubMenu1, SubMenu2, SubMenu3, SubMenu4, SubMenu5, SubMenu6, ExcludeTitle, ExcludeText]
WinMinimize [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinMinimizeAll
WinMinimizeAllUndo
WinMove , X, Y
WinMove , WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]
WinRestore [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinSet , Attribute, Value [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinSetTitle , NewTitle
WinSetTitle , WinTitle, WinText, NewTitle [, ExcludeTitle, ExcludeText]
WinShow [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinWait [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText]
WinWaitActive [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText]
WinWaitClose [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText]
WinWaitNotActive [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText]
( -----------------以上是“命令”-----------------
( -----------------以下是“函数”-----------------
Func (Funcname)
FileOpen (Filename, Flags [, Encoding])
FileExist (FilePattern)
WinExist ([WinTitle, WinText, ExcludeTitle, ExcludeText])
WinActive ([WinTitle, WinText, ExcludeTitle, ExcludeText])
Asc (String)
Chr (Number)
Ord (String)
StrLen (String)
InStr (String, Needle [, CaseSensitive, StartingPos, Occurrence])
SubStr (String, StartingPos [, Length])
StrSplit (String [, Delimiters, OmitChars, MaxParts])
StrReplace (String, SearchText [, ReplaceText, OutputVarCount, Limit])
Trim (String [, OmitChars])
LTrim (String [, OmitChars])
RTrim (String [, OmitChars])
VerCompare (VersionA, VersionB)
Format (FormatStr [, Value1, Value2, ..., Value_n])
RegExMatch (String, NeedleRegEx [, OutputVar, StartingPos])
RegExReplace (String, NeedleRegEx [, Replacement, OutputVarCount, Limit, StartingPos])
StrGet (Address [, Length, Encoding])
StrPut (String [, Encoding])
StrPut (String, Address [, Length, Encoding])
VarSetCapacity (Var [, RequestedCapacity, FillByte])
NumGet (VarOrAddress [, Offset, "UInt|Int|Int64|Short|UShort|Char|UChar|Double|Float|Ptr|UPtr"])
NumPut (Number, VarOrAddress [, Offset, "UInt|UInt64|Int|Int64|Short|UShort|Char|UChar|Double|Float|Ptr|UPtr"])
DllCall ([DllFile\\]Function [, Type1, Arg1, Type2, Arg2, ..., ..., Type_n, Arg_n, "Cdecl ReturnType"])
RegisterCallback (FunctionName [, "Fast|CDecl", ParamCount, EventInfo])
InputHook ([Options, EndKeys, MatchList])
Hotstring (String|NewOptions|EndChars|MouseReset|Reset [, Replacement, 1|0|-1])
GetKeyState (KeyName [, "P|T"])
GetKeyName (Key)
GetKeyVK (Key)
GetKeySC (Key)
IsByRef (Var)
IsFunc (FunctionName)
IsLabel (LabelName)
IsObject (Param)
IsSet (Var)
Abs (Number)
Ceil (Number)
Exp (N)
Floor (Number)
Log (Number)
Ln (Number)
Max (Number1 [, Number2, ..., Number_n])
Min (Number1 [, Number2, ..., Number_n])
Mod (Dividend, Divisor)
Round (Number [, N])
Sqrt (Number)
Sin (Number)
Cos (Number)
Tan (Number)
ASin (Number)
ACos (Number)
ATan (Number)
OnClipboardChange (Func [, 1|-1|0])
OnMessage (MsgNumber [, Function, MaxThreads])
OnExit (Func [, 1|-1|0])
OnError (Func [, 1|-1|0])
Exception (Message [, What, Extra])
ComObjActive (CLSID)
ComObjArray (VarType, Count1 [, Count2, ..., Count8])
ComObjConnect (ComObject [, Prefix])
ComObjCreate (CLSID [, IID])
ComObjEnwrap (DispPtr)
ComObjError ([0|1])
ComObjFlags (ComObject [, NewFlags, Mask])
ComObjGet (Name)
ComObjMissing ()
ComObjQuery (ComObject [, SID], IID)
ComObjType (ComObject [, "Name|IID|Class|CLSID"])
ComObjUnwrap (ComObject)
ComObjValue (ComObject)
ComObject (VarType, Value [, Flags])
LoadPicture (Filename [, "Wn|Hn|Iconn|GDI+", ByRef ImageType])
MenuGetHandle (MenuName)
MenuGetName (Handle)
IL_Add (ImageListID, Filename [, IconNumber, ResizeNonIcon])
IL_Create ([InitialCount, GrowCount, LargeIcons])
IL_Destroy (ImageListID)
LV_Add ([Options, Col1, Col2, ..., Col_n])
LV_Delete ([RowNumber])
LV_DeleteCol (ColumnNumber)
LV_GetCount (["Selected|Col"])
( 斟酌再三,没有将这里的“StartingRowNumber”改为“RowNumber”
LV_GetNext ([StartingRowNumber, "Checked|Focused"])
LV_GetText (OutputVar, RowNumber [, ColumnNumber])
LV_Insert (RowNumber [, Options, Col1, Col2, ..., Col_n])
LV_InsertCol (ColumnNumber [, Options, ColumnTitle])
LV_Modify (RowNumber [, Options, NewCol1, NewCol2, ..., NewCol_n])
LV_ModifyCol ([ColumnNumber, Options, ColumnTitle])
LV_SetImageList (ImageListID [, 0|1|2])
TV_Add (Name [, ParentItemID, Options])
TV_Delete ([ItemID])
TV_Get (ItemID, "Expanded|Checked|Bold")
TV_GetChild (ParentItemID)
TV_GetCount ()
TV_GetNext ([ItemID, "Checked|Full"])
TV_GetParent (ItemID)
TV_GetPrev (ItemID)
TV_GetSelection ()
TV_GetText (OutputVar, ItemID)
TV_Modify (ItemID [, Options, NewName])
TV_SetImageList (ImageListID [, 0|2])
SB_SetIcon (Filename [, IconNumber, PartNumber])
SB_SetParts ([Width1, Width2, ..., Width255])
SB_SetText (NewText [, PartNumber, Style])
Array ([Value1, Value2, ..., Value_n])
Object (Obj)
Object ([Key1, Value1, Key2, Value2, ..., ..., Key_n, Value_n])
ObjRawGet (Object, Key)
ObjRawSet (Object, Key, Value)
ObjGetBase (Object)
ObjSetBase (Object, Base)
ObjAddRef (Ptr)
ObjRelease (Ptr)
ObjBindMethod (Obj, Method [, Param1, Param2, ..., Param_n])
( 对象的方法的函数版
ObjInsertAt (Object, Pos, Value1 [, Value2, ..., Value_n])
ObjRemoveAt (Object, Pos [, Length])
ObjPush (Object, [Value1, Value2, ..., Value_n])
ObjPop (Object)
ObjDelete (Object, Key)
ObjDelete (Object, FirstKey, LastKey)
ObjMinIndex (Object)
ObjMaxIndex (Object)
ObjLength (Object)
ObjCount (Object)
ObjSetCapacity (Object, Maxitems)
ObjSetCapacity (Object, Key, ByteSize)
ObjGetCapacity (Object, [Key])
ObjGetAddress (Object, Key)
Obj_NewEnum (Object)
ObjHasKey (Object, Key)
ObjClone (Object)
( 对象的过时的方法的函数版
ObjInsert (Object, Value)
ObjInsert (Object, Key, Value)
ObjInsert (Object, Index, Value1, Value2, ..., Value_n)
ObjRemove (Object, Key)
ObjRemove (Object, First, "")
ObjRemove (Object, First, Last)
( class 的函数
__New ([Param1, Param2, ..., Param_n])
__Delete ()
__Get ([Key1, Key2, ..., Key_n])
__Set ([Key1, Key2, ..., Key_n,] Value)
__Call (Name [, Param1, Param2, ..., Param_n])
( -----------------以上是“函数”-----------------
( -----------------以下是“内置变量”-----------------
Clipboard
ClipboardAll
ComSpec
ErrorLevel
ProgramFiles
true
false
A_AhkPath
A_AhkVersion
A_AppData
A_AppDataCommon
A_Args
A_AutoTrim
A_BatchLines
A_CaretX
A_CaretY
A_Clipboard
A_ComSpec
A_ComputerName
A_ControlDelay
A_CoordModeCaret
A_CoordModeMenu
A_CoordModeMouse
A_CoordModePixel
A_CoordModeToolTip
A_Cursor
A_DD
A_DDD
A_DDDD
A_DefaultGui
A_DefaultListView
A_DefaultMouseSpeed
A_DefaultTreeView
A_Desktop
A_DesktopCommon
A_DetectHiddenText
A_DetectHiddenWindows
A_EndChar
A_EventInfo
A_ExitReason
A_FileEncoding
A_FormatFloat
A_FormatInteger
A_Gui
A_GuiControl
A_GuiControlEvent
A_GuiEvent
A_GuiHeight
A_GuiWidth
A_GuiX
A_GuiY
A_Hour
A_IPAddress1
A_IPAddress2
A_IPAddress3
A_IPAddress4
A_IconFile
A_IconHidden
A_IconNumber
A_IconTip
A_Index
A_InitialWorkingDir
A_Is64bitOS
A_IsAdmin
A_IsCompiled
A_IsCritical
A_IsPaused
A_IsSuspended
A_IsUnicode
A_KeyDelay
A_KeyDelayPlay
A_KeyDuration
A_KeyDurationPlay
A_Language
A_LastError
A_LineFile
A_LineNumber
A_ListLines
A_LoopField
A_LoopFileAttrib
A_LoopFileDir
A_LoopFileExt
A_LoopFileFullPath
A_LoopFileLongPath
A_LoopFileName
A_LoopFilePath
A_LoopFileShortName
A_LoopFileShortPath
A_LoopFileSize
A_LoopFileSizeKB
A_LoopFileSizeMB
A_LoopFileTimeAccessed
A_LoopFileTimeCreated
A_LoopFileTimeModified
A_LoopReadLine
A_LoopRegKey
A_LoopRegName
A_LoopRegSubKey
A_LoopRegTimeModified
A_LoopRegType
A_MDay
A_MM
A_MMM
A_MMMM
A_MSec
A_Min
A_Mon
A_MouseDelay
A_MouseDelayPlay
A_MyDocuments
A_Now
A_NowUTC
A_NumBatchLines
A_OSType
A_OSVersion
A_PriorHotkey
A_PriorKey
A_ProgramFiles
A_Programs
A_ProgramsCommon
A_PtrSize
A_RegView
A_ScreenDPI
A_ScreenHeight
A_ScreenWidth
A_ScriptDir
A_ScriptFullPath
A_ScriptHwnd
A_ScriptName
A_Sec
A_SendLevel
A_SendMode
A_Space
A_StartMenu
A_StartMenuCommon
A_Startup
A_StartupCommon
A_StoreCapslockMode
A_StringCaseSense
A_Tab
A_Temp
A_ThisFunc
A_ThisHotkey
A_ThisLabel
A_ThisMenu
A_ThisMenuItem
A_ThisMenuItemPos
A_TickCount
A_TimeIdle
A_TimeIdleKeyboard
A_TimeIdleMouse
A_TimeIdlePhysical
A_TimeSincePriorHotkey
A_TimeSinceThisHotkey
A_TitleMatchMode
A_TitleMatchModeSpeed
A_UserName
A_WDay
A_WinDelay
A_WinDir
A_WorkingDir
A_YDay
A_YWeek
A_YYYY
A_Year
( -----------------以上是“内置变量”-----------------
( -----------------以下是“方法属性”-----------------
( RegExMatch() 的正则匹配对象
.Len
.Value
.Mark
( InputHook() 的操作对象
.KeyOpt (Keys, KeyOptions)
.Start ()
.Stop ()
.Wait ([MaxTime])
.EndKey
.EndMods
.EndReason
.InProgress
.Input
.Match
.OnEnd
.OnChar
.OnKeyDown
.OnKeyUp
.BackspaceIsUndo
.CaseSensitive
.FindAnywhere
.MinSendLevel
.NotifyNonText
.Timeout
.VisibleNonText
.VisibleText
( FileOpen() 的文件对象
.Read ([Characters])
.Write (String)
.ReadLine ()
.WriteLine ([String])
.ReadUInt ()
.ReadInt ()
.ReadInt64 ()
.ReadShort ()
.ReadUShort ()
.ReadChar ()
.ReadUChar ()
.ReadDouble ()
.ReadFloat ()
.WriteUInt (Number)
.WriteInt (Number)
.WriteInt64 (Number)
.WriteShort (Number)
.WriteUShort (Number)
.WriteChar (Number)
.WriteUChar (Number)
.WriteDouble (Number)
.WriteFloat (Number)
.RawRead (VarOrAddress, Bytes)
.RawWrite (VarOrAddress, Bytes)
.Seek (Distance [, SEEK_SET|SEEK_CUR|SEEK_END])
.Position ([Distance])
.Pos ([Distance])
.Tell ()
.Length ([NewSize])
.AtEOF ()
.Close ()
.Encoding ([Encoding])
.Handle ()
.__Handle ()
( 对象的方法
.InsertAt (Pos, Value1 [, Value2, ..., Value_n])
.RemoveAt (Pos [, Length])
.Push ([Value1, Value2, ..., Value_n])
.Pop ()
.Delete (Key)
.Delete (FirstKey, LastKey)
.MinIndex ()
.MaxIndex ()
.Length ()
.Count ()
.SetCapacity (Maxitems)
.SetCapacity (Key, ByteSize)
.GetCapacity ([Key])
.GetAddress (Key)
._NewEnum ()
.HasKey (Key)
.Clone ()
( 对象的过时的方法
.Insert (Value)
.Insert (Key, Value)
.Insert (Index, Value1, Value2, ..., Value_n)
.Remove (Key)
.Remove (First, "")
.Remove (First, Last)
( 枚举器对象
.Next (OutputVar1 [, OutputVar2, ..., OutputVar_n])
( Func 对象
.Call (Param1, Param2, ..., Param_n)
.Bind (Param1, Param2, ..., Param_n)
.Name ()
.IsBuiltIn ()
.IsVariadic ()
.MinParams ()
.MaxParams ()
.IsByRef (ParamIndex)
.IsOptional (ParamIndex)
( class 对象
.base
.__New ([Param1, Param2, ..., Param_n])
.__Delete ()
.__Get ([Key1, Key2, ..., Key_n])
.__Set ([Key1, Key2, ..., Key_n,] Value)
.__Call (Name [, Param1, Param2, ..., Param_n])
( -----------------以上是“方法属性”-----------------
( -----------------以下是“按键”-----------------
Shift
LShift
RShift
Alt
LAlt
RAlt
Control
LControl
RControl
Ctrl
LCtrl
RCtrl
LWin
RWin
AppsKey
AltDown
AltUp
ShiftDown
ShiftUp
CtrlDown
CtrlUp
LWinDown
LWinUp
RWinDown
RWinUp
LButton
RButton
MButton
WheelUp
WheelDown
WheelLeft
WheelRight
XButton1
XButton2
Joy1
Joy2
Joy3
Joy4
Joy5
Joy6
Joy7
Joy8
Joy9
Joy10
Joy11
Joy12
Joy13
Joy14
Joy15
Joy16
Joy17
Joy18
Joy19
Joy20
Joy21
Joy22
Joy23
Joy24
Joy25
Joy26
Joy27
Joy28
Joy29
Joy30
Joy31
Joy32
JoyX
JoyY
JoyZ
JoyR
JoyU
JoyV
JoyPOV
JoyName
JoyButtons
JoyAxes
JoyInfo
Space
Tab
Enter
Escape
Esc
BackSpace
BS
Delete
Del
Insert
Ins
PgUp
PgDn
Home
End
Up
Down
Left
Right
DownR
PrintScreen
CtrlBreak
Pause
Sleep
ScrollLock
CapsLock
NumLock
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
NumpadMult
NumpadAdd
NumpadSub
NumpadDiv
NumpadDot
NumpadDel
NumpadIns
NumpadClear
NumpadUp
NumpadDown
NumpadLeft
NumpadRight
NumpadHome
NumpadEnd
NumpadPgUp
NumpadPgDn
NumpadEnter
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
( 多媒体键
Browser_Back
Browser_Forward
Browser_Refresh
Browser_Stop
Browser_Search
Browser_Favorites
Browser_Home
Volume_Mute
Volume_Down
Volume_Up
Media_Next
Media_Prev
Media_Stop
Media_Play_Pause
Launch_Mail
Launch_Media
Launch_App1
Launch_App2
( -----------------以上是“按键”-----------------
( -----------------以下是“命令选项”-----------------
( Send 的选项
Click
Blind
Raw
Text
( CoordMode or PixelXXX 的选项
Pixel
Mouse
Caret
Screen
Relative
Window
Client
RGB
( 长变量的选项
LTrim
RTrim
Join
( Process 的选项
Low
BelowNormal
Normal
AboveNormal
High
Realtime
( 窗口操作 WinTitle 的几种类型
ahk_id
ahk_pid
ahk_class
ahk_group
ahk_exe
( SetFormat 的选项
Integer
Float
IntegerFast
FloatFast
( If var is [not] type 的选项
integer
float
number
digit
xdigit
alpha
upper
lower