I'm trying to do a piece of code that takes a picture of a specific place on the screen. I can take a picture of the screen, but not of a specific place.
My goal is to take a picture where the top left point is at this position: (536, 76)
and the bottom right point is at this position: (998, 791)
Here's what I have so far, which takes a screenshot
import PIL
snapshot = PIL.ImageGrab.grab()
save_path = "C:\\Users\\pierr\\Pictures\\Screenshots\\oui_" + str(i) + ".jpg"
snapshot.save(save_path)