如何解决使用自动热键的分层键盘
在使我的键盘分层时,我想删除 ,
键的默认行为。我已经映射了 CapsLock
+j
来给我 ,
输入。现在,我希望仅按 ,
的新行为是 BackSpace,而 CapsLock
+,
是 }
输入。如何使用 AutoHotKey 脚本实现此目的?
PS:我正在尝试为我的 Mac 和 Windows 机器实现相同的 keyboard layout。我试图实现的布局非常接近,但不是上面链接中的 100% 精确。
到目前为止我所拥有的(你可以跳到最后 9 行代码):
#SingleInstance Force
#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.
; For easy access of Control Key
LAlt::Ctrl
; Use Alt as Snap keys
CapsLock::Alt
'::Alt
`;::Enter,::Backspace
.::Ctrl
/::Shift
!a::
Send,~
return
!s::
Send,=
return
!d::
Send,‘
return
!f::
Send,“
return
!g::
Send,-
return
!z::
Send,<
return
!x::
Send,{{}
return
!c::
Send,[
return
!v::
Send,(
return
!b::
Send,/
return
!{::
Send,|
return
!}::
Send,Ctrl
return
!h::
Send,{+}
return
!j::
Send,return
!k::
Send,.
return
!l::
Send,{Esc}
return
; the following will Now work currently cause ; has already been mapped to Enter key,find a solution
!`;::
Send,?
return
!n::
Send,\
return
!m::
Send,)
return
!,::
Send,]
return
!.::
Send,{}}
return
!/::
Send,>
return
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。