Check if the mouse or keyboard has been triggered

Asked

Viewed 55 times

0

I’m starting at the Electron, with that I need some help.

How do I detect if the keyboard or mouse has been triggered? If one of the two has not been touched in less than 1 minute run a command.

Thank you.

  • Want to run the command after 1 minute if they haven’t been touched? You want to make this detection only 1 time?

  • Can be with pure Javascript?

  • Hi Sam, it would be routine while the PC is on. I don’t know if only pure JS solves, the DOC is on this link https://electronjs.org/docs, but I still don’t know how to use it...

  • @Sam can give me that strength?

  • 1

    I don’t know, because I thought it was a website.

  • Try this lib, maybe you can help: https://github.com/wilix-team/iohook

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.