首页 > 解决方案 > AutoHotkey 用 [Right CTRL] + i, j,k,l 模拟箭头键

问题描述

我希望在编写源代码时更有效率。使用箭头键导航文本似乎无效,因为您需要移动右臂。我想使用与 [Right CTRL] 和键 [i]、[j]、[k]、[l] 之一的组合来模拟箭头键。我为 AutoHotkey 创建了一个脚本:

#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.

>^i::Send {Up}
>^j::Send {Left}
>^k::Send {Down}
>^l::Send {Right}

一切似乎都很好,直到您尝试按单词导航(左 CTRL + 左/右箭头)。我希望 [Right CTRL] + [Left CTRL] + [j] 表现得像 [Left CTRL] + [Left Arrow]。

标签: keyboardkeyboard-shortcutsautohotkeyarrow-keys

解决方案


推荐阅读