Skip to main content

Capture Screenshot

Command description

Capture the screen, a specified window object, or the active window. Save the screenshot in a specified folder with either a random or custom file name.

Command Input Parameters

input parametersInput parameter typeDescription
Screenshot SourceenumScreen, Window Object, Active Window
Window ObjectWindowInstanceRequired only when Screenshot Source is Window Object
Folder LocationstrFolder path to save screenshots, such as C:\xx
File Name PatternenumRandom File Name, Custom File Name
File NamestrRequired only when File Name Pattern is Custom File Name

Command Output Parameters

Output parametersOutput parameter typeDescription
Screenshot PathstrFull path to screenshot file

Example