Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小建议 #2

Open
WangYiWallis opened this issue Nov 15, 2022 · 1 comment
Open

小建议 #2

WangYiWallis opened this issue Nov 15, 2022 · 1 comment

Comments

@WangYiWallis
Copy link

您好,首先要感谢您的程序。
我给出两个改进的建议:
1:有的时候需要长时间按下ctrl的时候(使用快捷键),使用您的程序会导致ctrl失效,可以在callback 中修改判断条件 (nCode >=0) 为 (nCode >= 0&&(((KBDLLHOOKSTRUCT)lParam)).vkCode!=162) 以取消对 ctrl 的屏蔽
2:在main 函数中添加下面语句即可隐藏命令行窗口
if(IsWindowVisible(GetConsoleWindow()) == true){
ShowWindow(GetConsoleWindow(), SW_HIDE);
}

@xyfAKIOI
Copy link

其实那个ctrl的问题是因为,长按ctrl的机制也是多次触发。用这个程序会导致长按的触发间隔与delay_time取max,默认delay_time是100ms,ctrl就很难和别的键同时按下了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants