Desktop Application Object - CaptureWindow Method

Capture a bitmap screen print of a window as a file

Member of Desktop Application Object (PRIM_APPL)


Name Type Data Type Description
Result *Result (Optional) Boolean Returns True if the file was created
FileName *Input String File name of the bitmap image
Control *Input (Optional) PRIM_CTRL Reference to the control image to capture


The CaptureWindow method is used to capture a screen print of the Windows desktop.
The Control parameter allows a specific window to be specified.
The image is saved as the file specified in the FileName parameter.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020