English 中文(简体)
关键板的实际和虚拟关键报刊之间的区别
原标题:distinguish between keyboard s Real and Virtual key presses

我在C#中撰写了一项方案,该方案必须模拟主要的新闻指挥。

问题是——我需要模拟“现实”键盘点,而不是点击。 例如,我的理解是:

  • 当用户在键盘上报任何吨位时——信号通过USB发送,然后通过键盘驱动器进行。

  • 当使用APICS时(数据输入、SendKeys、KentBoardEvent,或以任何方式使用)——我们通过USB和U的驱动力,因此基本上可以通过全球视线跟踪这些新闻。

How do you simulate Realistic key presses?

  • 在C++中,我没有知识,因此,撰写习惯驱动器并非一种选择。

  • 我不想使用微控制器或任何额外的硬件“溶剂”,只要其价格低廉。

  • 是否有可能通过USB电缆连接2台PCS,以便从PC2向PC1发送现实的关键板子新闻信号?

因此,这种方法是什么?

最佳回答

You can identify keyboard event sent with SendInput() with global keyboard hook(WH_KEYBOARD_LL). It s callback method LowLevelKeyboardProc recieves KBDLLHOOKSTRUCT as a parameter.

如果LKHF——INJEC 国旗载于KBDLHOOKSTRUCT。 旗帜键板活动用SendInput(SendInput)进行。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签