Skip to content

Instantly share code, notes, and snippets.

@manchitro
Last active November 2, 2024 11:41
Show Gist options
  • Select an option

  • Save manchitro/6c386479b4a62816c796bca8e853278b to your computer and use it in GitHub Desktop.

Select an option

Save manchitro/6c386479b4a62816c796bca8e853278b to your computer and use it in GitHub Desktop.
AHK Script to remap LeftAlt+hjkl to ←↓↑→ Arrow Keys
#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.
global LevelFive
LevelFive = false
EnableLevelFive()
{
LevelFive = true
}
DisableLevelFive()
{
LevelFive = false
}
IsLevelFive()
{
return %LevelFive% = true
}
*RAlt::
EnableLevelFive()
return
*RAlt up::
DisableLevelFive()
return
#If IsLevelFive()
; arrow keys
k::up
h::left
j::down
l::right
; home & end
; u::home
; o::end
; page up & page down
; y::PgUp
; h::PgDn
; quotation marks
; [::send, “
; ]::send, ”
#If
Start "" "C:\Users\scripts\hjkl.ahk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment