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

AVEVA™ InTouch HMI

WWExecute() Function

  • Last UpdatedFeb 21, 2017
  • 1 minute read

Sends a command to an application, executes it, and returns a status result. You can use it to have Excel to run a macro.

Important: The WWExecute() function does not work on 64-bit versions of the Windows operating system.

Syntax

Result = WWExecute (appname, topic, command)

Parameters

appname

The name of the application the command is sent to. A literal string value, message tagname, or string expression.

topic

The name of the topic within the application that the command is sent to. A literal string value, message tagname, or string expression.

command

The command to be sent. A literal string value, message tagname, or string expression.

Return Value

A value of-1, 0, or 1 indicating the following:

-1 - command not executed successfully. Possible causes are the application not running, the topic does not exist or the command contains an error.

0 - command not executed successfully because the application is busy.

1 - command executed successfully.

Example(s)

This script instructs Microsoft Excel to execute the macro Macro1 by sending the command [Run("Macro1",0)] to Excel.

Macro="Macro1";

Command="[Run(" + StringChar(34) + Macro + StringChar(34) + ",0)]";

WWExecute("excel","system",Command);

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