如何在 Windows 中模拟额外的鼠标?

发布于 2024-07-09 06:51:33 字数 430 浏览 6 评论 0原文

我正在使用 MultiPoint SDK 为儿童创建协作教育应用程序不太富裕的国家,教室里没有为每个学生配备一台电脑。

因为我们需要支持最多 40 个鼠标连接到一台计算机,所以我们需要一种自动化的方法来测试我们的软件。 SDK 将支持在系统上找到的尽可能多的鼠标,并检测何时添加和删除鼠标。 每个鼠标在 WPF 窗口中显示为“虚拟”鼠标指针。 每个孩子都可以独立控制屏幕上的“他们的”指针。

我们希望创建一个测试工具来欺骗 Windows 认为它​​有多个鼠标。 该线束需要创建这些假设备(40+)并使用它们发送鼠标消息,如移动、按钮按下等

任何帮助将不胜感激。

I'm using the MultiPoint SDK to create a collaborative educational application for children in less affluent countries, where there is not one computer for each student in the classroom.

Because we need to support up to 40 mice connected to one computer, we need an automated way to test our software. The SDK will support as many mice that it can find on the system and detects when mice are added and removed. Each mouse appears as a 'virtual' mouse pointer within a WPF window. Each child has independent control of 'their' pointer on the screen.

We would like to create a test harness that tricks Windows into thinking that it has more than one mouse. The harness would need to create these fake devices (40+) and use them to send mouse messages like move, button down, etc

Any help would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最好是你 2024-07-16 06:51:33

将鼠标伪造到 MultiPoint 所需的程度将需要设备驱动程序。 这不是一件容易的事,但也绝不是不可能的。

最好的方法可能是 HID 微型驱动程序,您可以使用它来安装安装 API。 然后驱动程序将接受DeviceIoControls,这将导致它模拟鼠标输入报告。

Faking mice to the extent that you'd need for MultiPoint is going to require a device driver. This is not an easy task, but is by no means impossible.

The best approach would probably be a HID minidriver that you can install using the Setup API. The driver would then accept DeviceIoControls which would cause it to simulate mouse input reports.

梦中楼上月下 2024-07-16 06:51:33

您可以在 Windows 的 ddk(驱动程序开发套件)中使用 dsf(设备模拟框架)来添加模拟设备,不用担心它的示例是在 vbscript 中,您只需要找出正确的输入报告格式和要发送的代码即可。

you could use dsf(device simulation framework) in the ddk(driver development kit) for windows to add an emulated device dont worry its samples are in vbscript and you just need to figure out the correct input report format and codes to send.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文