挂入键盘,改变输出? [英] Hook into the keyboard, and change output?
本文介绍了挂入键盘,改变输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问候,
我有一个关于挂钩到Windows的简短问题。有没有办法可以改变键盘的结果?例如,如果我按A键,我可以这样做,而不是A它会显示为@吗?
我之所以这样做是因为我想用alt代码编写而不需要插入退格键然后插入我想要的角色。
问候,
- Deviant
Greetings,
I had a short question about hooking into Windows. Is there a way I could change the outcome of the keyboard? For instance, if I were to press the "A" key, could I make it so that instead of "A" it would show up as "@"?
The reason I'd like to do this is because I want to write in a alt code without the need of having to insert the backspace key and then the character I want.
Regards,
- Deviant
推荐答案
我认为你不想要钩子;我想你需要一个 KeyUp [ ^ ]事件处理程序。
在处理程序中进行所需的替换。
I don't think you want a hook; I think you need a KeyUp[^] event handler.
In the handler make whatever substitutions you want.
这篇关于挂入键盘,改变输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文