Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
This function will take snapshot of the area of the screen described by the first four Parameters.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Screenshot | 1.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
Left | Left | 100 |
Top | Top | 100 |
Width | Width of the rectangle | 200 |
Height | Height of Rectangle | 200 |
Format | File Format. Currently only JPEG supported. |
JPEG |
Quality | The quality of the image | 90 |
File Name | The desired file name. The image is not written to disk. This file name is just added to the container for later export. |
Test File.jpg |
Returns the image as a container value so you can assign it to a container.
Capture a portion of the screen to a JPEG
Let(
[
/*-----------------PARAMETERS--------------------*/
Left = 100;
Top = 100;
Width = 200;
Height = 200;
Format = "JPEG";
Quality = 90;
File Name = "Test File.jpg"
];
/*-------------------FUNCTION----------------------*/
MBS(
"ScreenshotRect";
Left ;
Top ;
Width ;
Height ;
Format ;
Quality ;
File Name
)
)
Capture an area of screen as picture:
Set Field [ test::test ; MBS( "ScreenshotRect"; 100; 100; 400; 300; "JPEG"; 90; "screenshot.jpg" ) ]
This function checks for a license.
Created 18th August 2014, last changed 18th April 2022