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

1 HKEY_CLASSES_ROOT<br />

2 HKEY_CURRENT_USER<br />

3 HKEY_USERS<br />

4 HKEY_CURRENT_CONFIG<br />

5 HKEY_PERFORMANCE_DATA<br />

strKey<br />

Path where the value is located in the Main Key.<br />

strVariableName<br />

Name of the variable to be set. The maximum length is 255 characters.<br />

numType<br />

Two types are currently supported:<br />

0 DWord<br />

1 String<br />

strOrNumValue<br />

Variable value.<br />

Returned value<br />

0 Success.<br />

−1<br />

−2<br />

−3<br />

Invalid number of parameters or invalid Main Key.<br />

Invalid type.<br />

Failed to read the variable value; verify that you have the proper security rights.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag SetRegValue( 0, "HARDWARE\DEVICEMAP\SERIALCOMM", "\Device\Serial1", 1,<br />

"COM3" ) // Returned value = 0 if successful<br />

Tag SetRegValue( 2, "Control Panel\Desktop", "Smooth Scroll", 0, 1 ) //<br />

Returned value = 0 if successful<br />

Caution: This register can affect the Windows system configuration. You should be extremely<br />

careful and edit the registry only when you are certain about the configuration.<br />

SetWebConfig<br />

Configures the Web settings for the current project. The settings configured in the function are updated on<br />

the HTML files of the project.<br />

Function Group Execution Windows Embedded Thin Client<br />

SetWebConfig System Info Synchronous Supported Supported Executed on Server<br />

Page 680<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!