Memory.GetObjectEventParam

variant Memory.GetObjectEventParam ( 

number  Object,

number  Index,

number  Type )

Description

Get value from a property of COM Object.

Parameters

Object

(number) COM Object that returned from Memory.CreateObject.

Index

(number) Index of Event parameter.

Type

(number) Type of your event that you want access it.

Returns

(variant) Return value depends on what type you choose.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Note: This function just must call from your event sinker, never use it from out of it, bad use from this function just show you crash, Beaware.

Example

Debug.ShowWindow(true) function MyObject_Sink(Event, params) Debug.Print("Event Is : " .. Event .. "\r\n ") Debug.Print("Number of parameters : " .. params.."\r\n ") for i = 1, params do Debug.Print("Parameter " .. i .. " : " .. Memory.GetObjectEventParam(My_Object, i, OBJECT_RETURN_STRING) .."\r\n ") end Debug.Print("--------------------------\r\n") end My_Object = Memory.CreateObject(Tree.GetProperties("Dummy_Tree").WindowHandle, "Dummy.Object", "MyObject_Sink")

See also:  Related Actions

Сайт управляется системой uCoz