18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Get the level of the component specified by TagComponent in the color specified by TagCode:<br />

RGBComponent( TagCode, TagComponent )<br />

SaveScreenShot<br />

This function takes a screen shot of the project screen and saves it to an image file.<br />

Function Group Execution Windows Embedded Thin Client<br />

SaveScreenShot Graphic Synchronous Supported Supported (only for<br />

open screens)<br />

Executed on Server<br />

Syntax<br />

SaveScreenShot({ | optStrScreenName{ | ,optStrOutputFile{ | ,{ optNumFormat | 0 | 1 | 2 | 3 | 4<br />

| 5 } } } })<br />

SaveScreenShot()<br />

SaveScreenShot( optStrScreenName )<br />

SaveScreenShot( optStrScreenName, optStrOutputFile )<br />

SaveScreenShot( optStrScreenName, optStrOutputFile, optNumFormat )<br />

optStrScreenName<br />

The name of a project screen file (*.scr). If no file path is specified, then the file must be located<br />

in the Screen folder of the project (e.g., \projectname\Screen\screenname.scr).<br />

For projects running on Windows, the screen may be either open or closed. For projects running<br />

on Windows Embedded, the screen must be open.<br />

This is an optional parameter; if no value (or "") is specified, then the currently open and active<br />

screen is used.<br />

optStrOutputFile<br />

The name of the output file. If no file path is specified, then the file is saved in the Web folder of<br />

the project (e.g., \projectname\Web\screenname.jpg)<br />

This is an optional parameter; if no value is specified, then either the value of optStrScreenName<br />

or simply ScreenShot.jpg is used.<br />

optNumFormat<br />

The format of the image file:<br />

Value<br />

Description<br />

0 BMP<br />

1 JPG<br />

2 PNG<br />

3 GIF<br />

4 TIFF<br />

5 Auto<br />

This is an optional parameter; if no value is specified, then the default is 1 (JPG).<br />

Returned value<br />

This function returns the following possible values:<br />

Page 650<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!