How electron keeps recording keystrokes

for example, I want to use electron as a gadget to record keystrokes.

the challenge now is how to know that each button is pressed and it"s useless to just write on the page because you want to run the program in the background.

if you are using globalShortcut, the api will report the following error.

are there any other implementation ideas?

clipboard.png

Jun.01,2022

recording keystrokes is troublesome. You need the knowledge of Windows Hook
do you want to disable all keystroke functions by registering shortcuts?

Menu