Trigger "Paste-Event" outside Window


#1

I’m trying to write a snippet manager with electron. What I want to achieve:

I am using some kind of editor (doesn’t matter which, I am writing code somewhere), then I switch to my snippet manager, choose a snippet and the snippet should be inserted into the field I was typing the code. Is this somehow possible with electron?

I am using a snippet tool at the moment, that already has this feature. But it’s a native app on windows.

Can someone think of a way to achieve this?


#2

Hi @butu. I have a similar goal. Did you figure out a way to do this?