Page 1 of 1

Func("ComObjTypeOrValue").IsBuiltIn returns true despite 'ComObjTypeOrValue' not being an AutoHotkey func.

Posted: 18 Aug 2018, 23:13
by CerpinTaxt
Found this while I was messing around trying to parse the source code a bit.

Re: Func("ComObjTypeOrValue").IsBuiltIn returns true despite 'ComObjTypeOrValue' not being an AutoHotkey func.  Topic is solved

Posted: 18 Aug 2018, 23:15
by lexikos
This is not a bug.
In current versions, any function-call beginning with "ComObj" that does not match one of the other COM functions actually calls ComObjActive. For example, ComObjEnwrap(DispPtr) and ComObjActive(DispPtr) are both equivalent to ComObject(DispPtr) (VarType 9 is implied). However, this behaviour will be unavailable in a future release, so it is best to use only ComObject() and ComObjActive() as shown on this page.
Source: ComObjActive() - Syntax & Usage | AutoHotkey