72 lines
1.1 KiB
AutoHotkey
72 lines
1.1 KiB
AutoHotkey
|
#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.
|
|||
|
SetCapsLockState, AlwaysOff
|
|||
|
|
|||
|
; Swap backtick and escape since I use escape much more
|
|||
|
Esc::SC029
|
|||
|
SC029::Esc
|
|||
|
|
|||
|
; Swap { } and [ ] since I use curly brackets more while programming
|
|||
|
:*?:[::
|
|||
|
SendInput, {Shift Down}`[{Shift up}
|
|||
|
return
|
|||
|
|
|||
|
:*?:]::
|
|||
|
SendInput, {Shift Down}`]{Shift Up}
|
|||
|
return
|
|||
|
|
|||
|
:*?:{::
|
|||
|
SendInput, `[
|
|||
|
return
|
|||
|
|
|||
|
:*?:}::
|
|||
|
SendInput, `]
|
|||
|
return
|
|||
|
|
|||
|
; Ctrl + PrintScreen shortcut for opening the snipping tool
|
|||
|
^PrintScreen::Send, #+{S}
|
|||
|
|
|||
|
#If GetKeyState("CapsLock", "P")
|
|||
|
i::Up
|
|||
|
j::Left
|
|||
|
k::Down
|
|||
|
l::Right
|
|||
|
|
|||
|
y:: Send, {End}+{Home}
|
|||
|
`;::Backspace
|
|||
|
p::Del
|
|||
|
|
|||
|
u::Home
|
|||
|
o::End
|
|||
|
|
|||
|
f::LCtrl
|
|||
|
d::LShift
|
|||
|
a::LAlt
|
|||
|
|
|||
|
s::WheelDown
|
|||
|
w::WheelUp
|
|||
|
|
|||
|
e::!Left
|
|||
|
r::!Right
|
|||
|
|
|||
|
z::^z
|
|||
|
x::^x
|
|||
|
c::^c
|
|||
|
v::^v
|
|||
|
|
|||
|
Backspace::^Backspace
|
|||
|
Del::^Del
|
|||
|
|
|||
|
Up::^Up
|
|||
|
Left::^Left
|
|||
|
Down::^Down
|
|||
|
Right::^Right
|
|||
|
|
|||
|
Space::Enter
|
|||
|
|
|||
|
#If
|
|||
|
*CapsLock::
|
|||
|
KeyWait, CapsLock
|
|||
|
Return
|