编写接受代码输入的键盘驱动程序 [英] Writing a keyboard driver that accepts input from code

查看:239
本文介绍了编写接受代码输入的键盘驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个项目的最终目标是发送低级别的输入(看起来像是从键盘输入)到我的Windows机器。

The ultimate goal of this project is to send low level input (so that it looks like it is coming from the keyboard) to my windows machine.

我知道C ++,Python和Java。虽然我想在python这样做,C ++可能是唯一的选择。

I know C++, Python, and Java. Though I would love to do this in python, C++ will probably be the only option.

我一直在互联网上搜索,并发现了一个叫做键盘过滤器驱动程序可以通过向驱动程序添加额外的层来向键盘流中注入击键。这是实现我目标的最好方法吗?如果是,我在哪里可以找到一些材料,以帮助我编码?

I have been searching around the internet and have found something called a Keyboard Filter Driver that can inject keystrokes into the keyboard stream by adding an extra layer to the driver. Is this the best way to accomplish my goal? If yes, where could I find some material to help me code it?

注意:Windows函数SendInput()不是我的选项

Note: Windows Function SendInput() is not an option for me

推荐答案

下载DDK或WDK并查看kbfiltr示例。你不能使用Python或Java。驱动程序通常用C编写。如果没有驱动程序开发背景,这将不那么容易(您需要阅读很多文档来了解您实际上在做什么)。

Download DDK or WDK and look at kbfiltr sample. You can't use Python or Java. Drivers are typically written in C. If you have no driver development background it will be not so easy (you need to read a lot of docs to understand what you are actually doing).

祝你好运!

这篇关于编写接受代码输入的键盘驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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