ScreenCapture |
Top Previous Next |
×V4.5Ø
Syntax - ScreenCapture <FileNameDestination> [<ScreenToCapture>] Where: <FileNameDestination> is a literal string or a variable that contains a literal string. <ScreenToCapture> is one of the following keywords: All, IE, EMUE, Primary.
Description: This command provides the ability to take a screenshot at any point in your script. This can be really useful for troubleshooting if you aren't watching the script run when an error occurs. <FileNameDestination> is the path and file name where you want the screenshot to be stored. Files can be stored as PNG or JPEG. If a file already exists with the desired file name, this command will overwrite the file. <ScreenToCapture> is which screen or application you want to capture. All is the default value. That will capture every display attached to the machine into one image. IE will capture the Internet Explorer window opened in the current sprint. EMUE will capture a screenshot of the EMUE application. Primary will capture a screenshot of your main display, often designated by the start button.
Sample 1: The following command captures a screenshot of the Internet Explorer window associated with the current script. ScreenCapture "C:\EMUE\Denials\ScreenShots\Error_#today#_#time#.png" IE
Sample 2: The following command captures a screenshot of all displays connected to the machine. ScreenCapture "C:\EMUE\ScreenShots\Error_#today#.jpeg" |