我想使用AutoHotKey重新映射几个键。例如:
;remap the 9 key to (
9::Send (
;Remap the shift 9 key to output 9.
$+9::Send, {9} -- fails.
有谁知道如何将 Shift +键重新映射到普通键?
我想重新映射这些键以避免经常按 Shift 键。我经常在我的代码中输入()_而不是每次都要按 Shift 键。话虽如此,我也不想失去对默认密钥的访问权。
编辑1:
最终代码如下:
;remap the 9 key to (
9::(
;Remap the shift 9 key to output 9.
$+(::Send 9
;remap the 0 key to )
0::)
;remap the shift 0 key to 0
$+)::Send 0
答案 0 :(得分:4)
这适用于我:
9::(
$+(::Send 9
这也有效,可能会有更清晰的意图:
9::(
$+9::Send 9
答案 1 :(得分:0)
您可以使用我的脚本。我将'['和']'替换为'('和')'
[::(
]::)
$+(::Send [
$+)::Send ]
+[::{
+]::}