Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

超过8个汉字的长句只能输出后8个字 #1

Closed
inactive0v0 opened this issue Mar 8, 2019 · 1 comment
Closed

超过8个汉字的长句只能输出后8个字 #1

inactive0v0 opened this issue Mar 8, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@inactive0v0
Copy link
Member

qq 20190309004301
输入:道路千万条安全第一条
输出:千万条安全第一条
改变字符串,结果相同;小于8个字的字符串没有问题。
总感觉是哪里的buffer满了导致的

@k9yyy k9yyy self-assigned this Mar 9, 2019
@k9yyy k9yyy added the bug Something isn't working label Mar 9, 2019
@k9yyy k9yyy closed this as completed Mar 9, 2019
@k9yyy
Copy link
Member

k9yyy commented Mar 9, 2019

好像必须输入得足够慢才行,已在 1b04eb1 中增大了默认按键延时设定。

推测的原因:Windows默认的按键缓存队列长100,而每个字需要按键6次,每次按下和松开两个事件共12次事件,所以8个字之后队列满了,导致前面的被顶掉。

(缓存队列大小设定在注册表里:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdclass\Parameters\KeyboardDataQueueSize,供参考)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants