Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Autohotkey 释放Ctrl和Shift不会';不要用瓶盖锁正常工作_Autohotkey - Fatal编程技术网

Autohotkey 释放Ctrl和Shift不会';不要用瓶盖锁正常工作

Autohotkey 释放Ctrl和Shift不会';不要用瓶盖锁正常工作,autohotkey,Autohotkey,我尝试使用Ctrl+f+j的快捷键,这样Ctrl+j将使j成为左箭头,而f的组合将使其成为Ctrl(d应与shift相同),因此Ctrl+f+j将被视为Ctrl+左箭头 我成功地使它工作,但在我释放钥匙后,f和d卡住了,我无法返回正常模式 我有以下代码: CapsLock & j:: { Send, {blind}{Left} return f::Ctrl d::Shift return } CapsLock & l:: { Sen

我尝试使用Ctrl+f+j的快捷键,这样Ctrl+j将使j成为左箭头,而f的组合将使其成为Ctrl(d应与shift相同),因此Ctrl+f+j将被视为Ctrl+左箭头

我成功地使它工作,但在我释放钥匙后,f和d卡住了,我无法返回正常模式

我有以下代码:

CapsLock & j::
{
    Send, {blind}{Left}
    return
    f::Ctrl
    d::Shift
    return
}
CapsLock & l::
{
    Send, {blind}{Right}
    return
    f::Ctrl
    d::Shift
    return
}

CapsLock up::
{
    Send {Ctrl Up}
    Send {Shift Up}
    return
}

这在我释放l键之前效果很好,因为d键和f键之后不能使用。你知道为什么吗?我只是不能经常使用它们,它们保持Ctrl和Shift的功能。解决方法是分离组合。结果表明,ahk不支持嵌套热键,这样做会影响键的释放。下面的代码解决了我的问题

CapsLock & l::Send, {blind}{Right}
CapsLock & j::Send, {blind}{Left}

CapsLock & f::Ctrl
CapsLock & d::Shift

我不太明白你在做什么-为什么在其他热键中有热键?我已经更新了这个问题。检查开头的解释@Spyre