Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop() not working in electron-v51-linux-x64 #41

Closed
abhishekgargg opened this issue Feb 16, 2018 · 3 comments
Closed

stop() not working in electron-v51-linux-x64 #41

abhishekgargg opened this issue Feb 16, 2018 · 3 comments

Comments

@abhishekgargg
Copy link

stop() is not stopping the eventlisteners or iohook. I'm using latest version of iohook, 0.1.12.
I tried it on a couple of other versions as well like 0.1.9 and the same problem was there as well.
and unload() is exiting my process, so as soon as i unload iohook, my application exits.

Can you please suggest a way in which i can stop iohook once started?

@WilixLead
Copy link
Member

Please say, what you use? .on or .registerShortcut ?

@abhishekgargg
Copy link
Author

I am using .on
Here is how I'm using it.
const ioHook = require('iohook'); ioHook.start(true); ioHook.on('mousedown', function(msg){console.log(msg)}); setTimeout(function(){ioHook.stop();},5000);

The same piece of code works for node-v51-linux-x64, but isn't working for electron-v51-linux-x64.
Please let me know if any other information is required on this issue.

@WilixLead
Copy link
Member

Please try use your app with electron-v51-linux-x64 in another linux machine. Looks like it is related to OS or current build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants