Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

WindowState() Function

  • Last UpdatedFeb 21, 2017
  • 1 minute read

Checks if an InTouch window is open, is closed, or does not exist.

Syntax

result = WindowState (windowname)

Parameters

windowname

Name of the window. A literal string value, message tagname, or string expression.

Return Value

An integer value with the following meaning:

0 - InTouch window exists and is currently closed

1 - InTouch window exists and is currently open

2 - InTouch window does not exist

Example(s)

This script returns 0, if the InTouch window Main exists, but is not open.

WindowState("Main")

TitleResults for “How to create a CRG?”Also Available in