Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

1 Answer 1

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.