Skip to main content

Take Desktop Screenshot

Captures a full-page screenshot of the desktop and saves it to a specified directory. The screenshot can be named optionally, or a timestamped default name will be used.

Category: Desktop Application Automation · Group: General · Activity name: TakeScreenshotDesktop

The TakeScreenshotDesktop activity in the designer

Example

outputVariable = TakeScreenshotDesktop(directoryPath="<directoryPath>", optionalName="<optionalName>")

Inputs

NameTypeRequiredDefaultDescription
Directory PathstringThe path to the directory where the screenshot will be saved. If not provided, a temporary directory will be created.
Screenshot NamestringThe name of the screenshot file. If not provided, a default name will be generated.

Outputs

NameTypeDescription
outputVariablestringSpecifies the name of the variable that will store the screenshot path.