Sniffing the “Print Screen” key to attach its' contents on a composed mail automatically

我的梦境 提交于 2019-12-11 18:34:11

问题


How can I sniff the "Print Screen" key so that when it is pressed, a number of events happen on a webpage:

  1. There will be a dialog box that will pop up so that the user will only have to input the email address of the recipient.
  2. The image on the clipboard is automatically attached to the composed mail.

If it helps, I'm using PHP 5.3.5, Javascript and Swift mailer.


回答1:


This is completely impossible.




回答2:


You might be able to get access using a signed Java applet. I do that to read some network properties for a web-based Wake-On-Lan service, but I've never tried to access the system clipboard. I suspect that there's probably a better way to do what you're trying but you don't give any information on the actual application to make a suggestion.




回答3:


You can not access clipboard and other system-specific facilities with javascript, due to security. Let alone sniff the keyboard.



来源:https://stackoverflow.com/questions/5307160/sniffing-the-print-screen-key-to-attach-its-contents-on-a-composed-mail-autom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!