You are on page 1of 1

A screenshot is an image of the screen's content.

The pyautogui.screenshot() will return an Image object of the screen, or you can
pass it a filename to save it to a file
locateOnScreen() is passed a sample image file, and returns the coordinates of
where it is on the screen.
locateCenterOnScreen() will return an (x, y) tuple of where the image is on the
screen.
Combining the keyboard/mouse/screenshot functions lets you make awesome stuff!
{"threads":[{"position":225,"start":0,"end":224,"connection":"closed"},
{"position":225,"start":225,"end":447,"connection":"open"}],"url":"https://att-
b.udemycdn.com/2020-04-01_07-54-21-0b1917fadc6c17b21452bbd778b854f1/original.txt?
secure=6EVn7noQOgxSrryI0f7Y8w%3D%3D%2C1606945921&filename=lesson50-
recap.txt","method":"GET","port":443,"downloadSize":447,"headers":{"date":"Wed, 02
Dec 2020 17:53:22 GMT","content-type":"text/plain","content-
length":"447","connection":"close","x-amz-id-
2":"bfkalkTg/BYkSAhKGoX2K+m1UQhArUb5P9QxCF+dy0k7ezvMvnsiK2RU3npWFRVBlT1ByYSjHC0=","
x-amz-request-id":"E5411EE41A2DA63F","last-modified":"Wed, 01 Apr 2020 07:54:23
GMT","etag":"\"f296e2162f821304192b72747e3aa390\"","x-amz-meta-
qqfilename":"lesson50-recap.txt","x-amz-version-
id":"Uq2iI594L46f7H6h_AXz4isvrL92VznQ","x-edge-ip":"185.152.65.83","x-edge-
location":"pragueCZ","x-cache":"HIT","x-age":"1","server":"CDN77-Turbo","cache-
control":"max-age=31536000","content-disposition":"attachment; filename=\"lesson50-
recap.txt\"","x-77-nzt":"Abk73AH3rrf/LBE7AA==","x-77-nzt-ray":"9n2srdlW9h4=","x-lb-
ip":"185.59.220.1","x-lb-pop":"frankfurtDE","x-cache-lb":"HIT","x-age-
lb":"3871020","accept-ranges":"bytes"}}

You might also like