SendInput won't work at high speed

后端 未结 1 1441
渐次进展
渐次进展 2021-01-27 13:43

I have made a shortcut saying \"alt j\" goes one left with the arrows, like this:

!j::SendInput,{LEFT}

This works fine, except if I hold down \

相关标签:
1条回答
  • 2021-01-27 14:29

    So this is still an issue for you? Looks to me like an AutoHotkey bug most likely, or wrongly sent js because your RAM can't handle the heavy programs well enough.

    Things I can think of that you could try:

    • buy a better computer.

    • use setBatchLines, 1ms, making your script sleep 20ms each milli second and therefore consuming less cpu. This might clear AutoHotkey's mind.

    • SetKeyDelay, 50 might also help.

    Sometimes, a pressed down modifier such as ctrl or alt, slows down windows drastically. This was at least the case under Windows Vista. So you might wanna get rid of the ! (alt) and stick to the j instead: the following script gets activated by !j and behaves just like your initial script, but will also keep running once you release ALT, as long as J is pressed down:

    !j::
    sendInput {left}
    hotkey, *j, sendLeft, ON
    hotkey, *j up, stopSendLeft, ON
    return
    
    sendLeft:
    send {left}
    return
    
    stopSendLeft:
    hotkey, *j, sendLeft, OFF
    hotkey, *j up, stopSendLeft, OFF
    return
    

    Still, I don't have high hopes any of this will help you.

    0 讨论(0)
提交回复
热议问题