Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Take a screen shot of a specif area and save as variable

I want to make a program taking a cropped screenshot (like Windows+Shift+s) and save it as variable, not as a file.

  1. How do I Programmatically open this win+shift+s window?

  2. How to directly get the output without saving this as a picture?

    MEDevel.com: Open-source for Healthcare and Education

    Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

    Visit Medevel

I’m using python

>Solution :

you will need to:

  1. trigger the Print screen key (any keyboard library should allow it)
  2. retrieve the data from the clipboard (you will maybe forced to save it as a temporary file and then read from it)
  3. then parse the data it will be it will png format.
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading