-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutoHotkey.ahk
More file actions
39 lines (28 loc) · 908 Bytes
/
AutoHotkey.ahk
File metadata and controls
39 lines (28 loc) · 908 Bytes
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
SetTitleMatchMode, 2
GroupAdd CliSwap, ahk_class ConsoleWindowClass
GroupAdd Browser, ahk_exe firefox.exe
GroupAdd Misc, - OneNote
GroupAdd Misc, ahk_exe slack.exe
F4::Send !{Tab}
F6::Send !{F4} ;; close window
F7::GroupActivate, Misc
F8::WinActivate, ahk_exe emacs.exe
F9::GroupActivate CliSwap, R
F10::GroupActivate Browser, R
; Add as many window titles to the group as you want.
;────────── ────────── ────────── ────────── ──────────
;; Mozilla Firefox
#IfWinActive ahk_class MozillaWindowClass
Home::Send ^{PgUp} ; previous tab
End::Send ^{PgDn} ; next tab
$F6::Send !{F4} ; close window
$F12::Send ^w ; close tab
Return
;; Slack
#IfWinActive ahk_exe slack.exe
$F6::Send !{F4} ; close window
Return
;; Windows Explorer
#IfWinActive ahk_exe explorer.exe
$F6::Send !{F4} ; close window
Return