Loading...
This chapter gives an overview of the members available for the Event Listener.
Please read the chapter "Event Listener" if you would like to know how to add and use it. As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.
Project.EventListener(deviceName or ID) |
Example: Alternative Example: |
This gives access to all further members of the device "EventListener" from the Configuration dialog. Using the Project object is an alternative to addressing the device directly by entering its name. The Project object allows to address the device through its name or ID. Substituting the ID with a dynamic variable allows automation. Actions can be performed on many devices of the same type simultaneously, e.g. by using for-loops: |
EventListenerName.Disable |
Example: Alternative Example: |
This disables the Event Listener in the Configuration dialog as if the "Enable" check box in the window was unchecked. Use the .Enable member to reverse this command. |
EventListenerName.Enable |
Example: Alternative Example: |
This enables the Event Listener in the Configuration dialog as if the "Enable" check box in the window was checked. Use the .Disable member to reverse this command. |
EventListenerName.IsEnabled |
Example: Alternative Example: |
This member returns the status of the check box "Enable" of the configuration dialog as a string or Boolean value. The result is "True" if the device is enabled and "False" if it is currently not enabled. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = EventListener1.IsEnabled |