如何捕获特定端口的输入(USB读卡器) [英] How to catch input from a specific port (USB card reader)

查看:67
本文介绍了如何捕获特定端口的输入(USB读卡器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个USB读卡器。我希望使用Windows服务来捕获它的输入,而不会与键盘输入发生任何冲突。

读卡器充当键盘



我尝试了什么:



我还没有找到任何方法来获取特定的端口输入

I have a USB card reader. I want to catch its input using a windows service without any conflict with keyboard input.
the card reader act as a keyboard

What I have tried:

I haven't found any way to get a specific port input

推荐答案

你不能在一个完全不同的桌面下运行服务,它永远不会获得输入焦点。如果读卡器的作用类似于键盘,则按键只会转到登录的用户桌面。
You can't.services run under an entirely different desktop that never gets the input focus. If the card reader acts like a keyboard, the keystrokes will only go to the user desktop that's logged in.


这篇关于如何捕获特定端口的输入(USB读卡器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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