Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Creates screenshot from a window.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Window | 5.4 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. | 0 | |
MarginLeft | The margin from left to cut away border. | 0 | Optional |
MarginTop | The margin from top to cut away border. | 0 | Optional |
MarginRight | The margin from right to cut away border. | 0 | Optional |
MarginBottom | The margin from bottom to cut away border. | 0 | Optional |
ImageType | The type of image to return. Either JPEG, PNG, GIF or BMP. Default is JPEG. |
"JPEG" | Optional |
Filename | The filename to use for the picture. Default is "image" with the extension matching the image type. The image is not written to disk. This file name is just added to the container for later export. |
"test.jpg" | Optional |
Returns image or error.
Creates screenshot:
MBS("Window.Screenshot"; Get(WindowName); Window Screenshot::Margin Left; Window Screenshot::Margin Top; Window Screenshot::Margin Right; Window Screenshot::Margin Bottom)
Screenshot of current window as JPEG:
MBS( "Window.Screenshot"; 0)
This function checks for a license.
Created 27th October 2015, last changed 23th September 2021
Window.RunToolbarCustomizationPalette - Window.Scrollbar.GetScrollElasticity