2.1 COM Methods and Properties
MysterX allows scripting of most COM components from Racket. A COM
component can be scripted in MysterX if it supports OLE Automation
via the IDispatch interface, and if it publishes type
information using the ITypeInfo interface.
Returns a list of strings for all COM classes
registered on a system.
Returns a list of strings for all COM classes
registered on a system that have the "Control"
subkey.
Returns an instance of coclass. This is useful for COM
classes without a visual representation, or when a visual
representation is not needed.
The optional argument where indicates a for running the
instance, and may be 'local, 'remote, or a string
indicating a machine name. See Remote COM servers (DCOM) for more
information.
Returns a string that is the name of the COM class instantiated by
obj, or raises an error if the COM class is not known.
Returns a string that is the name of the ProgID instantiated by
obj, or raises an error if the COM class is not known.
Sets the COM class for obj to coclass. This is
useful when MysterX COM event-handling procedures can obtain only
ambiguous information about the object’s COM class.
Returns a list of strings indicating the names of methods on
obj/type.
Returns a list of symbols indicating the type of the specified
method in
obj/type. See
COM Types for
information on the symbols.
Invokes
method-name on
obj with
vs as the
arguments. The special value
com-omit may be used for
optional arguments, which useful when values are supplied for
arguments after the omitted argument(s).
Returns a list of strings indicating the names of readable
properties in obj/type.
Returns a list of symbols indicating the type of the specified
property in
obj/type. See
COM Types for
information on the symbols.
Returns the value of the final property by following the indicated
path of propertys, where each intermediate property is a
COM object.
Returns a list of strings indicating the names of writeable
properties in obj/type.
Returns a list of symbols indicating the type of the specified
property in
obj/type. See
COM Types for
information on the symbols.
Sets the value of the final property in obj to v
by following the propertys, where the value of each
intermediate property is a COM object.
Starts the Window Help system with help about the COM object or COM
type. The optional topic is typically a method or property
name.
Returns #t if the two COM objects are the same,
#f otherwise.
Returns #t if the argument is a COM object, #f
otherwise.
Increments the reference count for obj.
This procedure should only be called when system-level
errors occur due to a mismanaged COM object. Ordinarily,
MysterX handles all COM reference-counting automatically.
Returns a number indicating the current reference count
for a COM object.