AutoHotKey - 切换Shift键

问题描述:

我想使用AutoHotKey重新映射几个键。例如:AutoHotKey - 切换Shift键

;remap the 9 key to (
9::Send (

;Remap the shift 9 key to output 9. 
$+9::Send, {9} -- fails. 

有谁知道如何重新映射 +键正常键?

我想重新映射这些密钥,以避免经常按下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 

这工作在我身边:

9::(
$+(::Send 9 

这也适用,它可以更清楚的意图:

9::(
$+9::Send 9 
+1

非常好。完美工作。 – 2014-09-02 15:16:38

你可以把呃用我的脚本。我用'('和')替换'['和']'

[::(
]::) 
$+(::Send [ 
$+)::Send ] 
+[::{ 
+]::}