Developing my own virtual keyboard for Windows 7 Desktop

与世无争的帅哥 提交于 2020-01-01 03:39:11

问题


I would like to build my own virtual keyboard for my windows 7 tablet. I am not starting from zero in programming; I just have no idea on where to start to make a system level device like a virtual keyboard.

Is there a good article or SDK for this?


回答1:


You'll need to write a driver in order to truly get a virtual keyboard. Keyboard drivers cannot be written in C#.

Drivers are written in C (not even C++; just C), and they use the Windows Driver Kit for development. There is insufficient documentation, period (the sooner you admit this, the better). Pick up a copy of the following books if you don't already have them: Windows Internals, Advanced Windows Debugging, Oney's Programming the Windows Driver Model, and Developing Drivers with the Windows Driver Foundation. I strongly recommend using KMDF, since it makes writing drivers only extremely difficult rather than insanely near-impossible. Subscribe to OSR's NTInsider and read their mailing list archives (they are the only source I know that has all the missing details on driver writing). Begin working your personal contacts because there's a medium-to-high chance you'll need to talk to someone deep within Microsoft.

To be brutally honest, it is a lot easier to hire an existing expert in the field. Driver development is not cheap, but it's cheaper than doing it yourself.




回答2:


Here's an old C++ article on the matter.

http://www.codeproject.com/KB/cpp/onscreenkeyboard.aspx?display=PrintAll&fid=500&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26&select=1605922

But I think you'll wind up using SendKeys in C# - http://www.codeproject.com/KB/cs/SendKeys.aspx



来源:https://stackoverflow.com/questions/6472563/developing-my-own-virtual-keyboard-for-windows-7-desktop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!