These functions are used to manage a project's
various runtime modules — such as background tasks, the data
server, and the project viewer — as well as those modules'
interactions with the operating system.
AppActivate AppActivate is a built-in
scripting function that activates (i.e., brings to the front)
another application window that is already open.
AppIsRunning AppIsRunning is a built-in
scripting function that verifies another application window is open
and running.
AppPostMessage AppPostMessage is a built-in
scripting function that sends a Windows system message to another
application window.
AppSendKeys
Sends keyboard commands to the active application.
CleanReadQueue
Removes all reading messages from the communications module.
Report
Executes the specified Report worksheet and sends the output to
hard disk, printer, or PDF.
RunGlobalProcedureOnServer
Runs a function or sub-routine, as declared in the Global
Procedures interface. The procedure is run on the server, but it
can be called by any local or remote client.
RunVBScript
Executes a statement in VBScript language.
SecureViewerReload SecureViewerReload is a built-in
scripting function that closes the Secure Viewer program and then
reloads it with a new configuration file.
SendKeyObject
Sends key event codes to objects in the currently displayed project
screen. You can use this function to trigger Command animations on
these objects.
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.
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.
SetViewerPos
Sets the height, width, and position of the project viewer or thin
client.
ShutDown
Shuts down all of the active project modules.
StartTask
Starts a project module that is not currently running.
ViewerPostMessage
Posts a Windows System Message to the specified project
screen.
Wait
Pauses the project for a specified number of milliseconds.
WinExec WinExec is a built-in
scripting function that executes a Windows command as if it was
entered at the command prompt.
WinExecIsRunning
Indicates whether a program started by the WinExec function is still running.