Skip to content

Instantly share code, notes, and snippets.

@beta
Last active August 11, 2017 07:17
Show Gist options
  • Save beta/f8d5008385c4b4a7232d7b9835f9abf3 to your computer and use it in GitHub Desktop.
Save beta/f8d5008385c4b4a7232d7b9835f9abf3 to your computer and use it in GitHub Desktop.
AutoHotkey script for some hotkeys for Windows.
; Disable Caps Lock
*CapsLock::Return
; Caps + J = Left
; Shift + Caps + J = Shift + Left
CapsLock & j::
If GetKeyState("LShift", "p")
Send, +{Left}
Else
Send, {Left}
Return
; Caps + L = Right
; Shift + Caps + L = Shift + Right
CapsLock & l::
If GetKeyState("LShift", "p")
Send, +{Right}
Else
Send, {Right}
Return
; Caps + I = Up
; Shift + Caps + I = Shift + Up
CapsLock & i::
If GetKeyState("LShift", "p")
Send, +{Up}
Else
Send, {Up}
Return
; Caps + K = Down
; Shift + Caps + K = Shift + Down
CapsLock & k::
If GetKeyState("LShift", "p")
Send, +{Down}
Else
Send, {Down}
Return
; Caps + U = Home
; Shift + Caps + U = Shift + Home
CapsLock & u::
If GetKeyState("LShift", "p")
Send, +{Home}
Else
Send, {Home}
Return
; Caps + O = End
; Shift + Caps + O = Shift + End
CapsLock & o::
If GetKeyState("LShift", "p")
Send, +{End}
Else
Send, {End}
Return
; Caps + Y = Page Up
; Shift + Caps + Y = Shift + Page Up
CapsLock & y::
If GetKeyState("LShift", "p")
Send, +{PgUp}
Else
Send, {PgUp}
Return
; Caps + H = Page Down
; Shift + Caps + H = Shift + Page Down
CapsLock & h::
If GetKeyState("LShift", "p")
Send, +{PgDn}
Else
Send, {PgDn}
Return
; Caps + Back Space = Ctrl + Back Space (delete a word)
; Shift + Caps + Back Space = (delte a line)
CapsLock & BackSpace::
If GetKeyState("LShift", "p") {
Send, {End}
Send, +{Home}
Send, {Delete}
}
Else
Send, ^{BackSpace}
Return
; Ctrl + Esc = `
^Esc::
Send, ``
Return
; Shift + Esc = ~
+Esc::
Send, ~
Return
@beta
Copy link
Author

beta commented Aug 11, 2017

Made this AutoHotkey script for ikbc Poker. Caps Lock is disabled, and the following hotkeys are defined:

Hotkey Maps to
Caps Lock + I / J / K / L / / /
Shift + Caps Lock + I / J / K / L Shift + / / /
Caps Lock + U / P Home / End
Shift + Caps Lock + U / P Shift + Home / End
Caps Lock + Y / H Page Up / Page Down
Shift + Caps Lock + Y / H Shift + Page Up / Page Down
Caps Lock + Back Space Ctrl + Back Space (Delete a word)
Shift + Caps Lock + Back Space (Delete a line)
Ctrl + Esc `
Shift + Esc ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment