-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEssentialKeys.ahk
105 lines (86 loc) · 3.11 KB
/
EssentialKeys.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
; An assortment of miscellaneous hotkeys/strings
; Written by Andrew Glick
#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.
;
; HyperScroll
; Press F19 to toggle scrolling more lines at a time
; From: https://www.autohotkey.com/boards/viewtopic.php?t=36720
; Note: This seems to only work if is the first thing in the script
Speed2 = 6
toggle := 0
F19::toggle := !toggle
#If toggle
WheelUp::Send {WheelUp %speed2%}
WheelDown::Send {WheelDown %speed2%}
#If
; Set hotstring options
; * - Don't require an ending character
; ? - Can be triggered inside another word
#Hotstring * ?
;==============================================================================
; EMAILS
;==============================================================================
; Hidden for privacy reasons
;::n@e::[email protected]
;==============================================================================
; EMOJIS
;==============================================================================
::\:)::😊
::\;)::😉
::\:(::🙁
::\wink::😉
::\(: ::🙃
::\yikes::😬
::\sigh::😔
::\:|::😑
:C:\:D::😄
::\XD::😂
::\:P::😛
::\cry::😥
::\ccry::😭
::\grr::😠
::\hmm::🤔
::\angry::😠
::\tup::👍
::\clap::👏
::\facepalm::🤦♂️
::\shrug::🤷♂️
::\thank::🙏
; No-width space (Doesn't work in all programs)
::\\nwsp::{U+0x200B}
; Reset hotstring options
#Hotstring C0 *0 ?0
; Right alt -> App key (Rick click button)
RALT::AppsKey
;==============================================================================
; LAUNCH PROGRAMS
;==============================================================================
; Old calculator
#c::Run "C:\Windows\System32\calc1.exe"
; return
; Everything (Search)
#s::Run "C:\Program Files\Everything\Everything.exe"
; return
; Run Sublime Text - Create new file
+#s::Run "C:\Program Files\Sublime Text 3\subl.exe" --command new untitled
; return
; Advanced Sleep
; My computer wakes itself almost instantly from standard sleep for whatever reason
+^#s::DllCall("PowrProf\SetSuspendState", "int", 0, "int", 1, "int", 0)
; Parameter #1: Pass 1 instead of 0 to hibernate rather than suspend.
; Parameter #2: Pass 1 instead of 0 to suspend immediately rather than asking each application for permission.
; Parameter #3: Pass 1 instead of 0 to disable all wake events.
;==============================================================================
; MISCELLANEOUS
;==============================================================================
; Ctrl + Backspace fix for File Explored and Notepad
; source and context: http://superuser.com/a/636973/124606
#IfWinActive ahk_class CabinetWClass ; File Explorer
^Backspace::
#IfWinActive ahk_class Notepad
^Backspace::
Send ^+{Left}{Backspace}
#IfWinActive ; endif