Closed derived-coder closed 3 years ago
I started an external GUI application via python subprocess. How can I make a screenshot of it?
You have to know the window position and size, then call grab:
im = ImageGrab.grab(bbox=(10, 10, 510, 510)) # X1,Y1,X2,Y2
I started an external GUI application via python subprocess. How can I make a screenshot of it?