Appendix: Built-in Scripting Language Examples Is the project viewer ( Viewer.exe ) running? IsTaskRunning( "Viewer" ) IsViewerInFocus Verifies that the project viewer ( Viewer.exe ) is in focus on the display. Syntax IsViewerInFocus() This function takes no parameters. Returned value Examples IsViewerInFocus() KeyPad Displays a Virtual Keyboard to prompt the runtime user to enter a tag value. Syntax KeyPad( " strTagName ", optStrKeyboardName , optNumIsPassword , optStrHint , optNumMin , optNumMax , ) strTagName The name of the tag to which the Virtual Keyboard will write. This name must be enclosed in quotes; if it is not, then the project will try to get the contents of the tag.
optStrKeyboardName Type of Virtual Keyboard that will be launched (e.g., AlphaNumeric , EnhKeypad , or Keypad ). If this parameter is omitted, then the default Virtual Keyboard will be launched. optNumIsPassword If this parameter is set with any value different from 0 (zero), the characters typed in the Virtual Keyboard will appear as asterisks (" * "). This option is useful when the user is typing a password. optStrHint The value specified for this parameter is displayed in the title bar of the Virtual Keyboard window, if the Show Hint option is selected in the project settings .
optNumMin, optNumMax Minimum and maximum numeric values for the Tag when using the Keypad keyboard type, if the Show MIN/MAX fields option is selected in the project settings . (These values are ignored for all other keyboard types.) These parameters are optional, but you must specify both to have them implemented. If you specify only one parameter — for example, Min but not Max — then it will be ignored. optNumESign InduSoft Web Studio Page 507 Function Group Execution Windows Embedded Thin Client IsViewerInFoc usModule Activity Synchronous Supported Not supported Not supported 0 Viewer is not in focus. 1 Viewer is in focus.
Function Group Execution Windows Embedded Thin Client KeyPad Module Activity Asynchronous Supported Supported Supported