xavi- / node-copy-paste

A command line utility that allows read/write (i.e copy/paste) access to the system clipboard.
425 stars 76 forks source link

Is there any way to listen for clipboard changes? #36

Closed HerrZatacke closed 9 years ago

HerrZatacke commented 9 years ago

Hi,

I'd like my application to know when the content of the clipboard has changed.

I could imagine something like:

var copypaste = require('copy-paste');

copypaste.listen(function(newData){
    console.log(newData);
});

is this something which might be implemented in the future?

xavi- commented 9 years ago

I'm not sure if that's possible. The clipboard is completely controlled by the OS and as far as I know, there's no event bus of clipboard changes.