Enables direct calls to any Newlook object method.
This method currently only applies to the Smartframe Newlook Control and Embedded Newlook Control.
Introduced in Version 11.0.
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. |
(object) - returns the value of the invoked method (null for methods with no return value).
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.
The following Javascript code would be used to invoke the Sys.SendKeys method.
// javascript
newlook.Invoke("Sys", "SendKeys", "{Enter}"); // Invoke 'Sys.SendKeys("{Enter}");
RunScript method | Smartframe Newlook Control API
© 2004-2021 looksoftware. All rights reserved.