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?
Maybe you can use zeroclipboard to achieve this.Or you can use these code: