节点js如何获取剪贴板的文本

时间:2021-04-08 08:58:54

How would I get my clipboard's text? So if I have "Hello" copied, how would I retrieve that via node

我如何获得剪贴板的文字?所以,如果我复制了“Hello”,我将如何通过节点检索它

1 个解决方案

#1


0  

Found it for windows 10, https://github.com/sindresorhus/clipboardy

找到它为Windows 10,https://github.com/sindresorhus/clipboardy

their example of usage

他们的用法示例

const clipboardy = require('clipboardy');

clipboardy.writeSync('????');

clipboardy.readSync();
//=> '????'

#1


0  

Found it for windows 10, https://github.com/sindresorhus/clipboardy

找到它为Windows 10,https://github.com/sindresorhus/clipboardy

their example of usage

他们的用法示例

const clipboardy = require('clipboardy');

clipboardy.writeSync('????');

clipboardy.readSync();
//=> '????'