C# Mono - Low Level Keyboard Hook

て烟熏妆下的殇ゞ 提交于 2019-12-01 18:24:08

It's not possible to get this behavior using only .Net. You have to use a binary driver for each platform you run on (Windows, Linux, Mac OS). It might be possible to use only P/Invoke (detect what OS you are running on, call appropriate system libraries) so that you won't have to distribute any "extra" dll/so/dylib.

Without knowing what you are trying to capture, it's hard to be sure what will work for you. You may want to look at using Application.AddMessageFilter.

An example is here: http://dn.codegear.com/article/30129

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!