You can capture an image. I am trying to figure out how to capture text. I'm guessing there isn't, for security reasons, but I wanted to make sure.
Also is there a reference for this stuff? window.Clipboard
object isn't part of the v8 engine, it's a part of the chrome browser and I can't find official documentation for it.
In the code you linked there is a
pasteHandler
function with the following:Chrome developer frame is telling me that items[i] is a
DataTransferItem
(reference)On the reference page I see a
kind
property and agetAsString()
method. The latter seems to require a callback function that receives the text as a parameter. So to handle text values using the above script you might modify the section I linked as follows: