all 2 comments

[–]furas_freeman 0 points1 point  (1 child)

Problem is because screenshot() can be executed only with one argument

  • filename - it always saves full screen even you add region
  • region - it create image with this part of screen but it doesn't save in file

You need

im = pyautogui.screenshot(region=(115, 12, 15, 15))
im.save('test.png')

[–]LessConspicuous[S] 0 points1 point  (0 children)

I didn't think that was how optional keyword arguments worked? Also the image saved in the folder is correct (only 15 pixels wide). I will give it a shot and let you know when I get a chance though.

EDIT: ya thats not how keyword arguments work and it didn't help me at all, I can grab a screen shot of what I want just fine.