-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathglobals.ahk
203 lines (171 loc) · 7 KB
/
globals.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
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
; This file must be in Windows 1252 or UTF-BOM encoding, because of "»"
; Script Name
global SCR_Name := path(A_ScriptName).name ;SCR_Name = Name of script file without extension
global SCR_AHKDir:= path(A_AHKpath).dir
;-----------------------------------------------------------------------
; Hook Timeout
global SCR_hookTimeOut
regRead, SCR_hookTimeOut, HKEY_CURRENT_USER\Control Panel\Desktop, LowLevelHooksTimeout
SCR_hookTimeOut := SCR_hookTimeOut?SCR_hookTimeOut:300
;-----------------------------------------------------------------------
; Script PID and HWND
DetectHiddenWindows, On ; Off is called in Directives.ahk
global SCR_PID := DllCall("GetCurrentProcessId","Uint")
;========================================================================
; Programs
global PRG_RS_VideoPlayer := {
(Join
process: "PotplayerMini64.exe",
run: "potplayer.exe",
play: "+{F12}",
win: "ahk_class PotPlayer64",
name: "PotPlayer"
)}
global PRG_RS_MusicPlayer := {
(Join
process: "MusicBee.exe",
trigger: "{Media_Play_Pause}",
name: "MusicBee"
)}
global PRG_RS_Clipboard := {
(Join
process: "Ditto.exe",
trigger: "^``",
name: "Ditto"
)}
global PRG_RS_Launcher := {
(Join
process: "keypirinha-x64.exe",
win: "ahk_class keypirinha_wndcls_run",
trigger: "!{F2}",
name: "Launcher"
)}
global PRG_RS_Run := {
(Join
process: "keypirinha-x64.exe",
trigger: "!{F2}",
win: "ahk_class keypirinha_wndcls_run",
send: "{>} ",
name: "Run"
)}
global PRG_RS_WindowSwitcher := {
(Join
process: "keypirinha-x64.exe",
trigger: "!{F2}",
win: "ahk_class keypirinha_wndcls_run",
send: "{»}{Tab}",
name: "WindowSwitch"
)}
global PRG_RS_Screenshot := {
(Join
process: "ShareX.exe",
args: "-s",
trigger: "{PrintScreen}",
win: "ShareX - Region capture",
name: "ShareX"
)}
global PRG_RS_TextEditor := {
(Join
process: "code.exe",
alwaysRun: True,
visible: false,
at_path: True,
pass_path: True,
name: "VSCode"
)}
global PRG_RS_Terminal := {
(Join
run: "wt.exe",
process: "WindowsTerminal.exe",
alwaysRun: True,
at_path: True,
name: "Terminal"
)}
global PRG_RS_CHM := {
(Join
process: "hh.exe",
name: "CHM"
)}
global PRG_RS_GPG_Agent := {
(Join
process: "gpg-agent.exe",
args: "--daemon",
visible: False,
name: "GPG Agent"
)}
global PRG_RS_Calc := {
(Join
process: "calc.exe",
name: "Calculator"
)}
#include *i globals-Private.ahk ; Has personal data in this file
;========================================================================
; Window Groups
;-----------------------------------------------------------------------
;Explorer
GroupAdd, WG_Explorer , ahk_class ExploreWClass ahk_exe explorer.exe
GroupAdd, WG_Explorer , ahk_class CabinetWClass ahk_exe explorer.exe
GroupAdd, WG_Desktop , ahk_class WorkerW ahk_exe explorer.exe
GroupAdd, WG_TaskBar , ahk_class Shell_TrayWnd ahk_exe explorer.exe
GroupAdd, WG_TaskView , Task Switching ahk_class MultitaskingViewFrame ahk_exe explorer.exe
GroupAdd, WG_TaskView , Task View ahk_class Windows.UI.Core.CoreWindow ahk_exe explorer.exe ; Win 10
GroupAdd, WG_TaskView , Task Switching ahk_class XamlExplorerHostIslandWindow ahk_exe explorer.exe
GroupAdd, WG_TrayMenu , Control Center ahk_class Windows.UI.Core.CoreWindow ahk_exe ShellExperienceHost.exe
GroupAdd, WG_TrayMenu , Notification Center ahk_class Windows.UI.Core.CoreWindow ahk_exe ShellExperienceHost.exe
;-----------------------------------------------------------------------
; keyRemap - RButton Prefixes
GroupAdd, WG_RightDrag , ahk_exe mspaint.exe
GroupAdd, WG_RightDrag , ahk_exe mspaint1.exe
;GroupAdd, WG_RightDrag , ahk_group WG_Browser
;-----------------------------------------------------------------------
; HotStrings - AutoBracket
GroupAdd, WG_AutoBracket , ahk_exe notepad.exe
GroupAdd, WG_AutoBracket , ahk_exe mathematica.exe
GroupAdd, WG_AutoBracket , ahk_group WG_Browser
GroupAdd, WG_NoAngularBrac , ahk_exe Mathematica.exe
;-----------------------------------------------------------------------
; Transparent - Windows
GroupAdd, WG_Transparent , ahk_class CabinetWClass ahk_exe explorer.exe
GroupAdd, WG_NoTransparent , ahk_class SysShadow
GroupAdd, WG_NoTransparent , ahk_class Dropdown
GroupAdd, WG_NoTransparent , ahk_class SysDragImage
;-----------------------------------------------------------------------
; keyRemap - +Enter/Space ; DEPRECATED
GroupAdd, WG_ShiftEnter , ahk_exe mathematica.exe
;GroupAdd, WG_ShiftSpace, ; Nothing right now
;-----------------------------------------------------------------------
; Programs
GroupAdd, WG_SublimeText , ahk_exe sublime_text.exe
GroupAdd, WG_SublimeMerge , ahk_exe sublime_merge.exe
GroupAdd, WG_Sublime , ahk_group WG_SublimeText
GroupAdd, WG_Sublime , ahk_group WG_SublimeMerge
GroupAdd, WG_Code , ahk_exe code.exe
GroupAdd, WG_Code , ahk_exe code - Insiders.exe
GroupAdd, WG_ImageViewer , ahk_class Qt5QWindowIcon ahk_exe nomacs.exe
GroupAdd, WG_unwantedHide , ahk_class ConsoleWindowClass ahk_group WG_VideoPlayerExe
GroupAdd, WG_unwantedClose , This is an unregistered copy ahk_class #32770 ahk_group WG_Sublime
GroupAdd, WG_unwantedClose , Sublime Merge ahk_class #32770 ahk_group WG_SublimeMerge, The selected commit has been undone.`nRe-commit the changes and press continue when you are done.
GroupAdd, WG_unwantedClose , Update Available ahk_class #32770 ahk_group WG_SublimeMerge
GroupAdd, WG_unwantedClose , Error ahk_class #32770 ahk_exe SdDisplay.exe
GroupAdd, WG_unwantedClose , Fences ahk_class WindowsForms10.Window.8.app.0.34f5582_r9_ad1 ahk_exe SdDisplay.exe
GroupAdd, WG_unwantedClose , ahk_class AvIPMDialog ahk_exe ipmGui.exe
GroupAdd, WG_unwantedClose , Internet Download Manager Registration ahk_exe IDMan.exe
GroupAdd, WG_unwantedClose , Internet Download Manager ahk_exe IDMan.exe, Internet Download Manager has been registered with a fake Serial Number
GroupAdd, WG_unwantedEsc , Disable developer mode extensions ahk_group WG_Browser
GroupAdd, WG_unwantedCloseRegex , ahk_class Afx:\w+:b:0000000000010003:0000000000900010:0000000000000000 ahk_group WG_VideoPlayerExe
;-----------------------------------------------------------------------
; Programs
GroupAdd, WG_VideoPlayerExe , ahk_exe PotPlayerMini64.exe
GroupAdd, WG_VideoPlayerExe , ahk_exe PotPlayer.exe
GroupAdd, WG_VideoPlayer , ahk_class PotPlayer64 ahk_group WG_VideoPlayerExe
GroupAdd, WG_Browser , ahk_exe chrome.exe
GroupAdd, WG_Browser , ahk_exe vivaldi.exe
GroupAdd, WG_Browser , ahk_exe zen.exe
GroupAdd, WG_Browser , ahk_exe firefox.exe
GroupAdd, WG_Browser_PIP , Picture in picture ahk_group WG_Browser
GroupAdd, WG_Browser_PIP , Picture-in-picture ahk_group WG_Browser
GroupAdd, WG_Console , ahk_class ConsoleWindowClass
GroupAdd, WG_Console , ahk_class CASCADIA_HOSTING_WINDOW_CLASS
GroupAdd, WG_Calc , ahk_exe calc.exe
GroupAdd, WG_Calc , ahk_exe calc1.exe
GroupAdd, WG_Launcher , Keypirinha ahk_exe keypirinha-x64.exe,,, % " - "