-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomShortcuts.ahk
62 lines (51 loc) · 1.44 KB
/
CustomShortcuts.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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;Global KEYS;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;Alternate Arrow Keys;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;
!w:: Send, {Up}
!A:: Send, {Left}
!S:: Send, {Down}
!D:: Send, {Right}
!E:: Send, {End}
!H:: Send, {Home}
!L:: Send, {Home}+{End}
^!d:: Send, ^{Right}
^!e:: Send, ^{End}
^!h:: Send, ^{Home}
+^!w:: Send, +^{Up}
+^!a:: Send, +^{Left}
+^!s:: Send, +^{Down}
+^!d:: Send, +^{Right}
+^!e:: Send, +^{End}
+^!h:: Send, +^{Home}
;;;Disable Alt by itself;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
~LAlt up:: return
~RAlt up:: return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;Launch Keys;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#s:: Run C:\Windows\System32\SnippingTool.exe
#n:: Run C:\Program Files\Sublime Text 3\sublime_text.exe
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;Utilities;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;Run Script If Sublime Text;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#IfWinActive, ahk_class PX_WINDOW_CLASS
{
SetTitleMatchMode, RegEx
#IfWinActive, \.ahk
{
^!r::
Send, ^+p
Send, AutoHotkey - Run
Send, {Enter}
Return
}
}