|Manuals

VirtualUI.TakeScreenshot Method

Description

This method captures a screenshot of a specified window and saves it to a file.

Syntax

public bool TakeScreenshot(long Wnd, string FileName);

Parameters

Parameter Type Description
Wnd long The window to be captured
FileName string Complete file path for saving the screenshot. Supported formats include jpg, bmp, and png

Return Value

Returns a boolean indicating whether the screenshot was captured successfully.