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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Takes a screenshot of the screen indicated by the "ScreenID" parameter.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Screenshot | 1.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
ScreenID | Zero Based index of the screens. If blank, then 0 is assumed. Use in range from 0 to MBS( "Screen.Count" )-1. |
0 |
Format | The format of the file (currently only JPEG is supported) | JPEG |
Quality | The quality of the image. From 0 to 100. | 80 |
Filename | The desired file name. The image is not written to disk. This file name is just added to the container for later export. |
MyCoolFile |
Returns the image as a container value so you can assign it to a container.
Capture screen as JPEG:
Let(
[
/*-----------------PARAMETERS--------------------*/
ScreenID = 0;
Format = "JPEG";
Quality = 512;
Filename = "MyCoolFile"
];
/*-------------------FUNCTION----------------------*/
MBS(
"Screenshot";
ScreenID ;
Format ;
Quality ;
Filename
)
)
Put screenshot in field:
Set Variable [ $screenshot ; Value: MBS("Screenshot"; 0; "jpeg"; 90) ]
Set Field [ Contacts::Photo Container ; $screenshot ]
Get screenshot of second screen:
Set Field [ Contacts::Photo Container ; MBS("Screenshot"; 1) ]
Created 18th August 2014, last changed 5th July 2021
Feedback: Report problem or ask question.