I want to make a program taking a cropped screenshot (like Windows Shift s) and save it as variable, not as a file.
How do I Programmatically open this win shift s window?
How to directly get the output without saving this as a picture?
I'm using python
CodePudding user response:
you will need to:
- trigger the
Print screen
key (any keyboard library should allow it) - retrieve the data from the clipboard (you will maybe forced to save it as a temporary file and then read from it)
- then parse the data it will be it will png format.