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

Syntax<br />

SecureViewerReload(strFileName)<br />

strFileName<br />

The file path of an INI file (*.ini) that describes the new configuration. (If the file is located in<br />

the same folder as Viewer.exe, then only the file name is needed.) The file should be structured<br />

the same and contain all of the same settings as the default configuration file (Viewer.ini).<br />

This parameter must specify either the name of a String tag or a text string enclosed in quotes.<br />

Returned value<br />

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

Examples<br />

SecureViewerReload( configFile1 )<br />

SecureViewerReload( "C:\Program Files\Secure Viewer\Bin\Config1.ini" )<br />

SendKeyObject<br />

Sends key event codes to objects in the currently displayed project screen. You can use this function to trigger<br />

Command animations on these objects.<br />

Function Group Execution Windows Embedded Thin Client<br />

SendKeyObject Module Activity Synchronous Supported Not supported Not supported<br />

Note: This function cannot be used with Tasks or in the Global Procedures script.<br />

Syntax<br />

SendKeyObject( numEvent, strMainKey, numShift, numCtrl, numAlt, strTargetScreen, optNumID<br />

)<br />

numEvent<br />

The event code for "On Down", "On While" or "On Up" of the Command animation, as follows:<br />

0 On Down<br />

1 While Down<br />

2 On Up<br />

strMainKey<br />

Note: The "On While" event requires special attention. Each time the<br />

SendKeyObject() function is executed, IWS executes the expressions configured<br />

for the "On While" sheet (from the object's Command animation) just once.<br />

The key to be sent to the screen. The following values are accepted:<br />

• "F1" … "F20"<br />

• "+ "<br />

• "-"<br />

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

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

Saved successfully!

Ooh no, something went wrong!