Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python take a screenshot

import pyautogui

myScreenshot = pyautogui.screenshot()
myScreenshot.save(r'Path to save screenshotfile name.png')
Comment

How to take a screenshot using python

import pyautogui
screenshot = pyautogui.screenshot()
screenshot.save("FilePathwhereyouwantToSaveFileName.FileFormat")
Comment

how to take screenshot with python


import pyautogui
im2 = pyautogui.screenshot('my_screenshot.png', region=(x,y, width, height))
Comment

PREVIOUS NEXT
Code Example
Python :: install a specific version of django 
Python :: matplotlib grid 
Python :: python ftp upload file 
Python :: python system year 
Python :: how to rewrite minute in datetime python 
Python :: python key down 
Python :: how to minimize tkinter window 
Python :: copy files python 
Python :: np.argsort reverse 
Python :: flask install 
Python :: matplotlib plot two graphs side by side 
Python :: check corently installed epython version 
Python :: knn sklearn 
Python :: web3py convert from wei to ether 
Python :: pandas convert to 2 digits decimal 
Python :: matplotlib title 
Python :: get video width and height cv2 
Python :: random word generator python 
Python :: pyton read text file 
Python :: set index to column pandas 
Python :: pandas new column with loc 
Python :: tesseract.exe python 
Python :: ImportError: No module named django.core.wsgi 
Python :: django gmail smtp 
Python :: column string to datetime python 
Python :: python calculate age from date of birth 
Python :: message on member joining discord.py 
Python :: dataframe rank groupby 
Python :: like in mysqldb python 
Python :: python get int from string 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =