Project

General

Profile

$comcall » History » Version 1

Per Amundsen, 08/23/2014 07:44 PM

1 1 Per Amundsen
*$comcall(name,alias,member,method,type1,value1,...,typeN,valueN)*
2
3
This calls a member of an open COM connection with the specified method and parameters.
4
5
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.
6
7
Returns: 1 = ok, 0 = fail.
8
9
*Parameters*
10
11
name - Connection name.
12
alias - Alias to call when the call is finished.
13
member - Member name.
14
method - Combination of the following values added together:
15
<pre>
16
             1 = DISPATCH_METHOD
17
             2 = DISPATCH_PROPERTYGET
18
             4 = DISPATCH_PROPERTYPUT
19
             8 = DISPATCH_PROPERTYPUTREF
20
</pre>
21
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.
22
<pre>
23
             VB equivalents are: boolean, byte, currency, date, double, integer, long, single, string, variant.
24
             To make a variable by reference, use * in the type name, eg. i1*
25
             To assign a name to a variable for later reference after a call, append it to the type, eg. i1* varname
26
             When using a variant you must also specify the variable type after it, eg. variant bool.
27
</pre>
28
value - The value assigned to the variable type.