Last active
November 2, 2024 11:41
-
-
Save manchitro/6c386479b4a62816c796bca8e853278b to your computer and use it in GitHub Desktop.
AHK Script to remap LeftAlt+hjkl to ←↓↑→ Arrow Keys
This file contains hidden or 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
| #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 |
This file contains hidden or 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
| Start "" "C:\Users\scripts\hjkl.ahk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment