-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvars.ahk
139 lines (139 loc) · 2.72 KB
/
vars.ahk
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
readable := {prototype: {}}
readwriteable := {base: readable, prototype: {base: readable.prototype}}
variables := define_vars()
define_vars() {
r := {base: readable.prototype}
rw := {base: readwriteable.prototype}
return {
AhkPath: A_ScriptFullPath,
AhkVersion: JKVersion,
AllowMainWindow: r,
AppData: r,
AppDataCommon: r,
Clipboard: rw,
ComputerName: r,
ComSpec: r,
ControlDelay: rw,
CoordModeCaret: rw,
CoordModeMenu: rw,
CoordModeMouse: rw,
CoordModePixel: rw,
CoordModeToolTip: rw,
Cursor: r,
DD: r,
DDD: r,
DDDD: r,
DefaultMouseSpeed: rw,
Desktop: r,
DesktopCommon: r,
DetectHiddenText: rw,
DetectHiddenWindows: rw,
EndChar: r,
EventInfo: rw,
FileEncoding: rw,
Hour: r,
HotkeyInterval: rw,
HotkeyModifierTimeout: rw,
IconFile: r,
IconHidden: {get: GetIconHidden, set: SetIconHidden},
IconNumber: r,
IconTip: rw,
InitialWorkingDir: A_InitialWorkingDir,
Is64bitOS: ComValue(0xB, -A_Is64bitOS),
IsAdmin: ComValue(0xB, -A_IsAdmin),
IsCompiled: ComValue(0xB, 0),
; IsCritical: r,
IsPaused: {get: () => ComValue(0xB, -A_IsPaused)},
IsSuspended: {get: () => ComValue(0xB, -A_IsSuspended)},
KeyDelay: rw,
KeyDelayPlay: rw,
KeyDuration: rw,
KeyDurationPlay: rw,
Language: r,
LastError: rw,
LineFile: {get: GetLineFile},
LineNumber: {get: GetLineNumber},
ListLines: rw,
; LoopField: r,
; LoopFileAttrib: r,
; LoopFileDir: r,
; LoopFileExt: r,
; LoopFileFullPath: r,
; LoopFileName: r,
; LoopFilePath: r,
; LoopFileShortName: r,
; LoopFileShortPath: r,
; LoopFileSize: r,
; LoopFileSizeKB: r,
; LoopFileSizeMB: r,
; LoopFileTimeAccessed: r,
; LoopFileTimeCreated: r,
; LoopFileTimeModified: r,
; LoopReadLine: r,
; LoopRegKey: r,
; LoopRegName: r,
; LoopRegTimeModified: r,
; LoopRegType: r,
MaxHotkeysPerInterval: rw,
MDay: r,
MenuMaskKey: rw,
Min: r,
MM: r,
MMM: r,
MMMM: r,
Mon: r,
MouseDelay: rw,
MouseDelayPlay: rw,
MSec: r,
MyDocuments: r,
Now: r,
NowUTC: r,
OSVersion: A_OSVersion,
PriorHotkey: r,
PriorKey: r,
ProgramFiles: r,
Programs: r,
ProgramsCommon: r,
PtrSize: A_PtrSize,
RegView: rw,
ScreenDPI: r,
ScreenHeight: r,
ScreenWidth: r,
ScriptDir: J_ScriptDir,
ScriptFullPath: J_ScriptFullPath,
ScriptHwnd: A_ScriptHwnd,
ScriptName: rw,
Sec: r,
SendLevel: rw,
SendMode: rw,
; Space: r,
StartMenu: r,
StartMenuCommon: r,
Startup: r,
StartupCommon: r,
StoreCapsLockMode: rw,
; Tab: r,
Temp: r,
; ThisFunc: r,
ThisHotkey: r,
TickCount: r,
TimeIdle: r,
TimeIdleKeyboard: r,
TimeIdleMouse: r,
TimeIdlePhysical: r,
TimeSincePriorHotkey: r,
TimeSinceThisHotkey: r,
TitleMatchMode: rw,
TitleMatchModeSpeed: rw,
TrayMenu: r,
UserName: r,
WDay: r,
WinDelay: rw,
WinDir: r,
WorkingDir: rw,
YDay: r,
Year: r,
YWeek: r,
YYYY: r,
}
}