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

Report problems with documented functionality
User avatar
CerpinTaxt
Posts: 13
Joined: 23 Dec 2017, 12:16

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

18 Aug 2018, 23:13

Found this while I was messing around trying to parse the source code a bit.
Image
and with just one faint glance back into the sea
the mollusk lingers with its wandering eye
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

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

18 Aug 2018, 23:15

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

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 22 guests