Invoke Method

Enables direct calls to any Newlook object method.

Client Support

This method currently only applies to the Smartframe Newlook Control and Embedded Newlook Control.

Version Support

Introduced in Version 11.0.

Syntax

object.Invoke(Expression, MethodName, Args)

The Invoke method syntax has these parameters:

Part

Description

Expression

(string) Expression that evaluates to an object.

MethodName

(string) Contains the name of the method to invoke on the object specified in Expression.

Args

(object, optional) An object containing the arguments to be passed to the method invoked.

Returns

(object) - returns the value of the invoked method (null for methods with no return value).

Use

The Invoke method enables direct calls to any Newlook object method, for instance Sys.SendKeys. Previously calls to this method would have to be routed through a Script or Macro which was tied to a specific Newlook solution. Invoking methods directly means that Smartframe templates can be developed independently, and have no dependency on a specific solution.

Applies To

Embedded Newlook Control

Smartframe

See Also

RunScript method | Smartframe Newlook Control API


© 2004-2021 looksoftware. All rights reserved.