Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Mathematica runs behind, while another window is selected. When I press print screen, I want mathematica too detect this and call a function with the picture as argument.

Paste[];
Image[%[[1,1,1,1,1,1,1]]]

Returns the screenshot, but I need it to be one command and picture shouldnt be almost destroyed as it happens with the command above. How should I do this?

share|improve this question
up vote 5 down vote accepted

For example:

Binarize /@  ToExpression@ Cases[NotebookGet[ClipboardNotebook[]], BoxData[_], Infinity]

Mathematica graphics

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.