Skip to content

Instantly share code, notes, and snippets.

@kzu
Created February 2, 2018 06:38
Show Gist options
  • Save kzu/2570df15e71d01de939b0b23a4bce0fc to your computer and use it in GitHub Desktop.
Save kzu/2570df15e71d01de939b0b23a4bce0fc to your computer and use it in GitHub Desktop.
Home/End AutoHotKey remap
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#InstallKeybdHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
; NoTrayIcon
; OPTIONAL: For those who use Home/End more than PgUp/PgDown, this flips their use with the Fn key.
; If you want the buttons to function as they are, add a semicolon (;) to the beginning of each line below.
Home::PgUp
End::PgDn
PgUp::Home
PgDn::End
; OPTIONAL: instead of swapping keys, map Alt+PgUp/Dn instead
; Turn Alt+PgUp into Home
;!PgUp::
; Send {Home}
;Return
; Turn Alt+PgDn into End
;!PgDn::
; Send {End}
;Return
;^!PgUp::
; Send ^{Home}
;Return
;^!PgDn::
; Send ^{End}
;Return
@kzu
Copy link
Author

kzu commented Feb 2, 2018

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