SendInput不能高速工作 [英] SendInput won't work at high speed

查看:69
本文介绍了SendInput不能高速工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个捷径,说"alt j"向左箭头,如下所示:

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

!j::SendInput,{LEFT}

这很好,除非我按住"alt j"的时间过长.在大多数情况下,它都可以正常工作,但是偶尔会在即将到来的路径周围放一些小的"j".说我想一次通过这句话写一封信:

This works fine, except if I hold down "alt j" for too long. It will work fine most of the time but occasionally dropping small "j"s around the path im going. Say i Wanna go one letter at a time, through this sentence:

"Hello world"

"Hello world"

它很可能会变成这样:

"jHeljjlo jworljd"

"jHeljjlo jworljd"

是否有办法在每次击键时稍加延迟以使其能够跟上步伐?还是这个问题与可能需要设置的默认延迟有关?

Is there a way to put a tiny delay on every keystroke to make it able to keep up? or is this problem related to a default delay which has to be set down maybe?

感谢您的帮助!

推荐答案

所以这仍然是您的问题吗? 在我看来,这很像是AutoHotkey错误,或者是j s错误发送,因为您的RAM无法很好地处理繁重的程序.

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.

使用 setBatchLines, 1ms ,使脚本每个睡眠20毫秒毫秒,因此消耗的CPU更少.这可能会清除AutoHotkey的想法.

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

SetKeyDelay, 50 可能也有帮助.

SetKeyDelay, 50 might also help.

有时,按下的修饰符(例如ctrlalt)会大大降低窗口速度.至少在Windows Vista中就是这种情况.因此,您可能想摆脱!(alt)并坚持使用j:以下脚本被!j激活,其行为与您的初始脚本相同,但是一旦释放ALT,它们也将继续运行,只要按下J:

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.

这篇关于SendInput不能高速工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆