Last active
August 11, 2017 07:17
-
-
Save beta/f8d5008385c4b4a7232d7b9835f9abf3 to your computer and use it in GitHub Desktop.
AutoHotkey script for some hotkeys for Windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Made this AutoHotkey script for ikbc Poker. Caps Lock is disabled, and the following hotkeys are defined: