Hi, I have 2 things I'd like help with:
1) is there a way to find the exact center of my screen?
2) a loop
Here's what I need the loop for:
image = ImageGrab.grab((0,0,800,800)) box = (100,100,400,400) im = image.crop(box) im1 = im.save("screen.jpg") # at this point I need to rotate the image 90 degrees and crop it again, but do this four times- # so I'd like a loop here instead of this: im2 = im1.rotate(90) im3 = im2.crop(box) im4 = im3.save("screen1.jpg") im5 = im4.rotate(90) im6 = im5.crop(box) im7 = im6.save("screen2.jpg") #you get the idea ;) I did try something like this: # for i in range(3): # im,im1,im2 #but that doesn't work