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?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c2d9cf-33307.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c2d9cf-33307.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?