ComObjCreate
From Auto Hotkey
ComObjCreate
Creates a COM object.
ComObject := ComObjCreate(CLSID , IID)
Parameters
- CLSID
CLSID or human-readable Prog ID of the COM object to create.
- IID
The identifier of an interface the object supports.
Return Value
If an error occurs, an empty string is returned.
If an IID is specified, an interface pointer is returned. The script must typically call ObjRelease when it is finished with the pointer.
Otherwise, a wrapper object usable by script is returned. See object syntax.
Related
ComObject, ComObjGet, ComObjActive, ComObjConnect, ComObjArray, ComObjError, ComObjQuery, CreateObject (MSDN)
Examples
For a constantly growing list of examples, see the following forum topic: http://www.autohotkey.com/forum/topic61509.html.
ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := true ; This is known to work incorrectly on IE7.
ie.Navigate("https://autohotkey.com/")