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




  1. Open command prompt using ‘Open Program/Files’.
  2. Picture showing the Open Program/Files command popup window to open command prompt

    Click to Enlarge

  3. Go to the folder using ‘cd’ command in MS DOS using ‘Insert Keystrokes’ command where python script is saved.
  4. Picture showing the Insert Keystrokes popup window to execute cd command in command prompt

    Click to Enlarge

  5. Add a delay of 2 seconds. This will ensure that previous step is completed.
  6. Picture showing the delay window to add a delay of 2 seconds

    Click to Enlarge

  7. Final step is to write a command using ‘Insert Keystrokes’ command to execute python script
  8. Picture showing the Insert Keystrokes popup window to execute the python script

    Click to Enlarge



Output




Picture showing the screen shot using the python program

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 31, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250