In an electronic structure, can I access the buffer?

I'm new to the Electron framework, I want to know if it has access to its own resources like - Clipboard - Keypress (not on my webpage, everywhere. Like keyboard hook on windows)

+3


source to share


2 answers


I believe what you are looking for is in the clipboard API.



There is also a global quick access API . Check out this SO answer where I gave an example of how it works.

+3


source


const {clipboard} = require('electron')
clipboard.writeText('Example String', 'selection')
console.log(clipboard.readText('selection'))

      



+2


source







All Articles