Overview
Get value from a property of COM Object.
(number) COM Object that returned from Memory.CreateObject.
(number) Index of Event parameter.
(number) Type of your event that you want access it.
(variant) Return value depends on what type you choose.
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.
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