$comcall » History » Revision 5
Revision 4 (Per Amundsen, 08/12/2015 09:39 AM) → Revision 5/6 (Per Amundsen, 08/12/2015 09:39 AM)
_Added in 1.9.4_ *$comcall(name,alias,member,method,type1,value1,...,typeN,valueN)* This calls a member of an open COM connection with the specified method and parameters. Uses the same format as [[$com]]() apart from the alias. It is multi-threaded so it will not halt the script and will call the specified alias once the call returns. Returns: 1 = ok, 0 = fail. *Parameters* name .name - Connection name. alias .alias - Alias to call when the call is finished. member .member - Member name. method .method - Combination of the following values added together: <pre> 1 = DISPATCH_METHOD 2 = DISPATCH_PROPERTYGET 4 = DISPATCH_PROPERTYPUT 8 = DISPATCH_PROPERTYPUTREF </pre> type .type - The variable type, can be: i1, i2, i4, ui1, ui2, ui4, int, uint, r4, r8, cy, date, decimal, bool, bstr, variant, dispatch, unknown, error. <pre> VB equivalents are: boolean, byte, currency, date, double, integer, long, single, string, variant. To make a variable by reference, use * in the type name, eg. i1* To assign a name to a variable for later reference after a call, append it to the type, eg. i1* varname When using a variant you must also specify the variable type after it, eg. variant bool. </pre> value .value - The value assigned to the variable type.