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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
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 | 1024 |
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 = 1024;
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"; 1024; "screenshot.jpg" ) ]
Created 18th August 2014, last changed 11st December 2020
Screenshot - ScriptWorkspace.BringToFront
Feedback: Report problem or ask question.