Articles → AUTOMATION ANYWHERE → Screen Shot Of The Screen Region Using Automation Anywhere
Screen Shot Of The Screen Region Using Automation Anywhere
Python Script
import pyautogui
pyautogui.screenshot("my_screenshot.png", region=(0,0, 300, 400))
Automation Anywhere Commands
- Open command prompt using ‘Open Program/Files’.
Click to Enlarge
- Go to the folder using ‘cd’ command in MS DOS using ‘Insert Keystrokes’ command where python script is saved.
Click to Enlarge
- Add a delay of 2 seconds. This will ensure that previous step is completed.
Click to Enlarge
- Final step is to write a command using ‘Insert Keystrokes’ command to execute python script
Click to Enlarge
Output
Click to Enlarge