切换同时按住 2 个键 - 慢速

Toggle holding 2 keys at the same time - slow speed

我正在使用 Autohotkey 同时按住 2 个键,手动操作时比我的代码快得多。我弄错了吗?

If it was unclear what I ment, I recorded it in a short clip, first one is by hand, second with the script

F7::
SetKeyDelay, 0
Toggle := !Toggle
If (Toggle)
    Send {1 down}{2 down}
Else
    Send {1 up}{2 up}
Return

我不确定你想做什么。该脚本似乎是按住 1 和 2,直到您再次按下 F7 并再次释放这两个键。那是你想要的吗?

#maxThreadsPerHotkey, 2
setKeyDelay, 50, 50
setMouseDelay, 50
banana:=0

$F7::
banana:=!banana
    while (banana=1)
    {
        send, {1}{2}
        sleep, 100
    }
Return

esc::ExitApp

从这个踩:

Autofire and togle