Based on MouseKeyHook by gmamaladze, I made some changes to to support .Net 4.0+,.Net Core 3.0+, WinForm, WPF etc. To make this project not to depend on System.Windows.Forms, some codes are from Microsoft which files are under system.Windows.Forms. I changed original namepsace to System.Windows.Hook.
Does the library support WIndows Form Application using VB.NET on Framework 4.5.1?
See screen shot below. I can't get any mouse or keyboard events from the IKeyboardMouseEvents. From the intellisense dropdown list on m_GlobalHook (declared as IKeyboardMouseEvents) there is no events available to me to subscribe.
As far as I understand it should support .net core 3.1 console applications right? It sadly doesn't work for me. As soon as the events are set up the cursor starts to lag on my screen (like one move per sec) and it captures nothing. The normal MouseKeyHook-Package does work for me perfectly fine but I wanted to use this version to also build my project for linux (even if I don't need this functionality there). Is this package just not made for my case or is it a bug? I use the logitech mx master but I think that shouldn't make a difference. No matter what the answer will be, thank you for this library! I searched ages before I found something like this.
Edit: Is there any way to detect a horizontal scroll through such a hook?
The KeyEventArgs Control/Alt/Shift bool Values don't get registered when the key that was pressed was that and it is recognized by e.KeyData
I'm sure this is a quick fix since it does get registered but pretty late (like 5 sec after holding the key)