18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

SetAppPath<br />

Sets the new file path for the project folder. After this function is executed, IWS will look for all of the project<br />

files (i.e.,screens, alarms, trends, database, events) in this folder.<br />

Function Group Execution Windows Embedded Thin Client<br />

SetAppPath Module Activity Synchronous Supported Not supported Executed on Server<br />

Syntax<br />

SetAppPath(strPath)<br />

strPath<br />

The file path.<br />

Returned value<br />

0 Failed to set path.<br />

1 Succeeded in setting path<br />

Examples<br />

Tag Name<br />

Expression<br />

SetAppPath( "C:\Studio\" )<br />

Note: If the computer is on a network, you can use the //IP address or host name/Path syntax<br />

to define a location on another node of the network.<br />

SetViewerInFocus<br />

SetViewerInFocus is a built-in scripting function that moves the project viewer in front of all other open<br />

windows and then maximizes it to fill the display.<br />

Function Group Execution Windows Embedded Thin Client<br />

SetViewerInFocusModule Activity Synchronous Supported Not Supported Supported<br />

Syntax<br />

SetViewerInFocus()<br />

There are no parameters.<br />

Returned value<br />

This function does not return any value.<br />

Notes<br />

Beginning with Windows XP, system security features prevent program windows from moving themselves<br />

in front of others without user input. As such, when you call this function, the Viewer program will request<br />

the user's attention by blinking in the Windows taskbar. (Some anti-virus software may also flag this as<br />

suspicious behavior.) Only when the user selects the program will the program window move to the front.<br />

To work around this, you must call SetViewerInFocus at least once in your project's Startup Script. Allow<br />

twenty seconds more for your project to finish starting up, and then after that, any additional calls of this<br />

function should work normally.<br />

<strong>InduSoft</strong> Web Studio Page 619

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

Saved successfully!

Ooh no, something went wrong!