C# SendKeys.Send

前端 未结 9 1289
闹比i
闹比i 2021-01-13 01:17

I am running on an issue using C# SendKeys.Send method. I am trying to replace keyboard keys with other keys, for example when I press \"a\" in keyboard I want that key to b

相关标签:
9条回答
  • Another option you have is to use Low-Level keyboard hooks to trap the old character and then send the new one. It will require some P/Invoke, but it gives you the ability to completely trap the original key so apps don't even see it.

    0 讨论(0)
  • 2021-01-13 01:54

    SendKeys.SendWait

    0 讨论(0)
  • 2021-01-13 01:56

    This may not be what you want/need, but if you just want to remap some keyboard keys, I would suggest looking into using another keyboard layout, or creating a custom layout. You can create new layouts with this:

    http://msdn.microsoft.com/en-ca/goglobal/bb964665.aspx

    0 讨论(0)
提交回复
热议问题