【发布时间】:2019-04-03 17:06:43
【问题描述】:
由于疯狂的笔记本电脑键盘布局和无法映射 Fn 组合,我想做一些重新映射。我想使用 LWin 键作为修饰符(例如 LWin+Right ==> End 等)。它工作得很好。
但是,我想在单独按下和释放时停止 LWin,以调出 Windows 菜单(b/c 我有时按下修饰符但随后决定不完成操作)和我仍然希望能够相当轻松地访问 Windows 菜单,例如通过 LAlt+LWin。 (显然 LWin 必须充当适当的修饰符,否则。)
所以我尝试了:
#LAlt::Send {LWin}
这有点工作但丑陋(需要在按下和释放 Alt 时按住 LWin)。反过来会更自然,即
!LWin::Send {LWin}
但它不起作用(即使带有 $ 或 ~ 前缀也不行)。
最糟糕的是,我没有成功禁用 LWin 键 单独 以使其仍可用作修饰符:
LWin::Return
彻底杀死它。
我是 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.
#InstallKeybdHook
; Win + arrows
*#Right::Send {End}
*#Left::Send {Home}
*#Down::Send {PgDn}
*#Up::Send {PgUp}
; Sane CapsLock: make it Shift, Shift+CapsLock as CapsLock
CapsLock::Shift
+CapsLock::CapsLock
; Alt-Win to Win (so that Win menu is accessible still)
; and disable Win alone (so that it won't pop up with navigation)
;??????????????
【问题讨论】:
标签: windows-10 keyboard-shortcuts autohotkey