AutoCmd represents a command that can be executed by an Automation interface wrapped by a Variant class.
The AutoCmd class is a friend class to Variant. It represents a single method on an Automation interface that is assigned as the value of a Variant.
- PropertyGet, for methods that return a property value.
- PropertySet, for methods that set a property value.
- Procedure, for methods that do not return a value.
- Function, for methods that do return a value.
Each AutoCmd instance is assigned a name, which is the same as the name of the corresponding method on the interface. In addition, it can be assigned parameters that correspond to the parameters of the method. These parameters can be stored by position or by name.
Once you have assigned parameter values to the AutoCmd object, you can execute it using the Variant::Exec method.