visual-keyboard icon indicating copy to clipboard operation
visual-keyboard copied to clipboard

Deal With Iohook Bug on Windows That Causes the Mouse to Lag

Open hediet opened this issue 5 years ago • 4 comments

This bug is a serious problem when launching a second instance of VS Code.

hediet avatar Mar 10 '20 10:03 hediet

I tried to replicate this bug with:

2 differents folder, each of these folder contains one node_modules with an installation of iohook. If you run "node index.js" from 2 separate cmd.exe, in each folder. The bug appear.

Very slow-mo mouse, buggy-laggy behaviors.

Conclusion: it is not only VS code

How can we fix it?

edrcq avatar Apr 11 '20 13:04 edrcq

Thanks for your commnt, I didn't know people are actually interested in this extension ;)

How can we fix it?

Are you a windows user (like myself)? I think this is a windows only problem. As windows users always have the .Net Framework installed, I think using a C# console application that uses a proper library might be a suitable solution. This application could use JSON RPC to communicate with the extension.

Given the low interest of the community in this extension, I'm currently not super motivated in fixing this, but I'll keep it on my todo list.

Also, this extension only starts to be really useful if it dynamically considers all keybindings/when-contexts from VS Code (currently, they are statically bundled with the extension). There is no API for that and due to the low interest in this extension I guess an API for that is never happening.

hediet avatar Apr 11 '20 14:04 hediet

As this is still not fixed in iohook, I'm switching over to something that seems to work much better in my projects. Perhaps you want to check it out too:

https://www.npmjs.com/package/gkm

Wizek avatar May 09 '20 13:05 Wizek

Thanks, that looks interesting! However, it requires Java to be installed...

I think iohook is fine for Linux. If I find time, I'll investigate to use .Net for Windows and iohook for Linux and Mac. What do you think?

hediet avatar May 09 '20 13:05 hediet