开发者

Sniffing the "Print Screen" key to attach its' contents on a composed mail automatically [closed]

开发者 https://www.devze.com 2023-02-17 07:32 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_开发问答Want to improve this question? Update the question so it focuses on one problem only b
Closed. This question needs to be more focused. It is not currently accepting answers.
开发者_开发问答

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 1 year ago.

Improve this question

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

  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.


This is completely impossible.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号