Skip to main content

mapper.view_elements.captured_window()

mapper.view_elements.captured_window(param_table)

This function creates a CapturedWindow view element object.

Parameters​

ParameterTypeDescription
param_tabletableThis parameter is in associative array table format, meaning it's specified by keys rather than parameter positions. See the Parameters Table section.

Parameters Table​

KeyTypeDescription
namestringThe name given by the user to the CapturedWindow object.
The name specified in this parameter will be displayed on the dashboard.
This parameter is required.
window_titlestringTitle text of the window to be captured.
This parameter is ignored if window_titles is specified.
If neither window_title nor window_titles is specified, the automatic window capture feature will not operate.
window_titlestableAn array of window title texts to be captured.
If any of the specified strings matches the window title, the window will be selected as a capture target.
This parameter allows specifying multiple candidates for window matching.
If this parameter is provided, it takes precedence over window_title.
If neither window_title nor window_titles is specified, the automatic window capture feature will not operate.
omit_system_regionbooleanIf this parameter is set to true, the title bar and window frame of the captured window will be hidden.
The default is true.
avoid_touch_problemsbooleanIf this parameter is set to true, it resolves the issue of touch operations not working in MSFS's pop-out instrument windows.
The default is true.

Return Values​

This function returens a CapturedWindow object.

See Also​