Appendix: Built-in Scripting Language numCtrl A numeric value or tag; whether to include Ctrl with the key ( 0 is no, 1 is yes). numAlt A numeric value or tag; whether to include Alt with the key ( 0 is no, 1 is yes). strTargetScreen The name of the screen to receive the key event code. Note: The numShift , numCtrl , numAlt and strTargetScreen parameters are optional. However, if you configure one of them, then you must configure the others as well. optNumID The specific instance number of the screen. (The ID is assigned when the screen is opened with the Open() function.) This is an optional parameter; the default ID is 0. Returned value This function returns no values.
Examples SetAppPath Sets the new file path for the project folder. After this function is executed, IWS will look for all of the project files (i.e.,screens, alarms, trends, database, events) in this folder. Syntax SetAppPath( strPath ) strPath The file path. Returned value Examples Note: If the computer is on a network, you can use the // IP address or host name / Path syntax to define a location on another node of the network. SetViewerInFocus SetViewerInFocus is a built-in scripting function that moves the project viewer in front of all other open windows and then maximizes it to fill the display.
InduSoft Web Studio Page 515 Tag Name Expression SendKeyObject( 0, "R", 1, 0, 0, "main", 10 ) // Sends Shift-R to the "main" screen with ID 10. Function Group Execution Windows Embedded Thin Client SetAppPath Module Activity Synchronous Supported Not supported Executed on Server 0 Failed to set path. 1 Succeeded in setting path Tag Name Expression SetAppPath( "C:\Studio\" ) Function Group Execution Windows Embedded Thin Client SetViewerInFo cuMsodule Activity Synchronous Supported Not Supported Supported