Documentation

comcreate

Syntax: %comcreate(objectname)

Create a new COM (OLE Automation) object and return a link to it. 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 TeSSH Variable to reference the COM object when calling the other COM functions.

Examples:

#VAR Outlook %comcreate("Outlook.Application")

creates a link to a new Microsoft Outlook COM object and stores the reference in the @Outlook TeSSH variable.

Add comment

Login or register to post comments