The video describes how to take a screenshot of a specific window using Python.
1. Use pyautogui to take a generic screenshot
2. Get the dimensions of the desired window using pygetwindow
3. Crop the screenshot to save image of the window only using PIL
4. Identify the running OS; Windows and macOS have slightly different code
PLEASE don't forget to LIKE, COMMENT,SUBSCRIBE and SHARE!!!
Follow PyBear on FACEBOOK,
https://www.facebook.com/pybear881/
If you would like to support the channel by buying me a coffee, many thanks
https://www.buymeacoffee.com/zubair881a6
Download
0 formats
No download links available.
Screenshot a specific window using Python in Windows / macOS | NatokHD