使用 Firefox API 将剪贴板数据分配给本地变量
如何使用 XPCOM 将剪贴板文本分配给局部变量。我只需要在 Firefox 中工作。请建议我使用任何插件或事件。我用谷歌搜索,但找不到符合我要求的文章。我听说过一些事情
nsIClipboardCommands
,但需要有关如何使用它的帮助。我可以在网页中使用此方法吗?
How can I assign Clipboard text to a local variable using XPCOM. I need only to be worked in Firefox. Please suggest me any plugin or events to use. I have googled, but unable to find the article which matches my requirement. I heard something about
nsIClipboardCommands
but need assistance on how to use it.. And can I use this method in a web page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您可以使用 zeroclipboard 来实现此目的。或者您可以使用以下代码:
Maybe you can use zeroclipboard to achieve this.Or you can use these code:
请参阅:使用剪贴板
See this : Using the Clipboard