comactive

Syntax: %comactive(objectname)

Returns a link to an existing COM (OLE Automation) object already running on the system. You can ONLY use this function as an argument of the #VAR command. Only #VAR understands how to store a link to a COM object. You'll then use this zMUD Variable to reference the COM object when calling the other COM functions. This might be used to access your current MS Word document or MS Excel spreadsheet.

Examples:

#VAR MSWord %comactive("Word.Application")

creates a link to an already running copy of Microsoft Word.



Contents color comcreate