3
Does anyone have any idea of how to access the image that is in the Clipboard when we give a Print Screen on any screen? What I need is to have access to the image by giving a ctrl + v
in the browser, exactly how this application works:
http://pasteboard.co/
the Code I got for the event is this, and it works, however how to access the image of this point?
$(document).bind('paste', function (evt) {
alert('ctrl + V funciona');
});
Detail: browser : Google Chrome
Well, I made an example these days with html2canvas and it’s on this link: http://answall.com/questions/17450/tirar-print-screen-e-salvar-imagem-automaticamente-em-c/17480#17480. Does it help?
– user6026
opa, I will try to implement.
– Ivan Ricardo Lopes
So Harry Potter, I implemented yet it didn’t work out as I expected, let’s say I took a print here, on the stack overflow, and then I went on my site and Ctrl+v, I wanted the print I took out to be for the action you implemented, but what is going to be the image of my application, have some idea?
– Ivan Ricardo Lopes
For security reasons, I’m pretty sure it’s not possible to do this in pure Javascript. Jquery probably doesn’t go much further, as it’s also just a library written in pure JS. MAS... That doesn’t mean you can’t improvise a gambit with the infamous... FLASH. Take a look at Zeroclipboard, it uses a SWF binary to access Clipboard, but in its case, it THROWS things to the clipboard, not PULLS. .
– Rui Pimentel
You came to take a look at the Github of the Pasteboard itself?
– Luiz Vieira
By the way, the author’s blog has nice information: http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript/
– Luiz Vieira
I didn’t look Luiz,I didn’t know I had, I’ll analyze, vlw.
– Ivan Ricardo Lopes
@Ukyron, I will try to verify the existence by this plugin if I have solution I put!
– user6026