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

AVEVA™ InTouch HMI

Call methods of an OLE object

  • Last UpdatedJul 24, 2024
  • 1 minute read

In a script, you can call OLE object methods.

Syntax

%pointer.method(parameters);

Arguments

%pointer

The pointer that references the OLE object. Must be created with OLE_CreateObject() function or assigned to another pointer before calling a method.

method

The name of the method that is part of the OLE object.

parameters

A list of parameters to pass to the method. These parameters must be separated by comma. Literal values, tagnames or expressions.

Example(s)

This script creates an OLE object based on the OLE class Shell.Application, creates a pointer %sa to the OLE object and calls the method .MinimizeAll(). This method minimizes all windows on your desktop.

OLE_CreateObject(%SA,"Shell.Application");

%SA.MinimizeAll();

Note: Optional parameters are not allowed in OLE InTouch HMI scripting. All parameters must be specified.

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