ComObjActive

Retrieves a running object that has been registered with OLE.

ComObject := ComObjActive(CLSID)

Parameters

CLSID

CLSID or human-readable Prog ID of the COM object to retrieve.

ComObject, ComObjCreate, ComObjGet, ComObjConnect, ComObjError, ComObjFlags, ObjAddRef/ObjRelease, ComObjQuery, GetActiveObject (MSDN)

Example

; Displays the active document in Microsoft Word, if it is running.
word := ComObjActive("Word.Application")
if !word
    MsgBox "Word isn't open."
else
    MsgBox word.ActiveDocument.FullName