Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

ScreenshotRect

This function will take snapshot of the area of the screen described by the first four Parameters.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Screenshot 1.0 Yes Yes Yes No No

MBS( "ScreenshotRect"; Left; Top; Width; Height; Format; Quality; File Name )

Parameters

Parameter Description Example value
Left Left 100
Top Top 100
Width Width of the rectangle 200
Height Height of Rectangle 200
Format File Format JPEG
Quality The quality of the image 1024
File Name The desired file name Test File.jpg

Result

Returns the image as a container value so you can assign it to a container.

Description

This function will take snapshot of the area of the screen described by the first four Parameters.
Updated for Mac OS X 10.7 in plugin version 2.5.

Examples

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
)
)


Screenshot   -   ScriptWorkspace.BringToFront

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins