Выполнить действия с элементом программы Windows через его диспетчер.

Вызов:

int ires = ts_idispatch(iIDispatch,"AutoWrap", int iVariantRes, string commandtypecall, string commandname, 0);
или 
int ires = ts_idispatch(iIDispatch,"AutoWrap", int iVariantRes, string commandtypecall, string commandname, int par_count, int iVariantArg1, ...);


Here:

ires - 0 if there is no error,

iIDispatch - object of type ts_idispatch,

iVariantRes - an object of type ts_variant to which the result of the call execution is written.

commandtypecall - call form


Value

Meaning

"DISPATCH_PROPERTYGET"

Get

"DISPATCH_PROPERTYPUT"

Put (Assigh)

"DISPATCH_METHOD"

Run

"DISPATCH_PROPERTYPUTREF"

Other

       

commandname - the name of the command or program variable (eg "ActiveCell" in Excel, etc.).