windows - 使用自动热键的分层键盘
问题描述
在使我的键盘分层时,我想删除,
键的默认行为。我已经映射CapsLock
+j
给我,
输入。现在,我希望仅,
按 BackSpace 和CapsLock
+,
输入的新行为}
。如何使用 AutoHotKey 脚本实现这一点?
PS:我正在尝试为我的 Mac 和 Windows 机器实现相同的键盘布局。我试图实现的布局非常接近,但不像上面的链接那样 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
解决方案
推荐阅读
- android - com.facebook.ads.AudienceNetworkActivity 的 ANR
- go - 为什么将结构指针作为输入的方法可以修改其字段值,而将结构作为输入的方法不能?
- selenium - 使用 runsettings 运行测试时获取“StackExchange.Redis.RedisConnectionException”
- javascript - 如何获取目录中的所有文件名并从php中的foreach循环创建json
- python - 如何从字符串元组中删除引号,同时将其格式化为另一个字符串?
- firebase - 在 Vue 中使用 $http.get (Vue-Resource) 获取和发送 Firebase 实时数据库身份验证令牌
- apache - 如何在apache上启用cors?
- linux - Tensorflow 源构建配置失败:找不到任何 cuda.h 匹配版本和字典值错误
- ruby-on-rails - 更改模型回调的参数值
- html - 背景重复:空间;有时在CSS中不起作用