From WikiChip
Difference between revisions of "mirc/identifiers/$com"
(Created page with "{{mirc title|$com Identifier}}'''$com''' calls a member of an open COM connection with the specified method and parameter, or returns informations about a currently opened COM...") |
(No difference)
|
Revision as of 16:09, 3 April 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$com calls a member of an open COM connection with the specified method and parameter, or returns informations about a currently opened COM
Synopsis
$com(name,member,method,type1,value1,...,typeN,valueN) - calls a member of an open COM connection with the specified method and parameters, returns 1 if the call succeeds, 0 = fail. $com(name/N) - returns the name of the Nth open COM connection or the name of that connection if it's open
Paramters
- name/N - The name of the connection or the Nth connection
- member - The name of the function of the object
- method - A combination of the following value added together:
- 1 = DISPATCH_METHOD
- 2 = DISPATCH_PROPERTYGET
- 4 = DISPATCH_PROPERTYPUT
- 8 = DISPATCH_PROPERTYPUTREF
Value | Method |
---|---|
1 | Call a member of an object |
2 | Return a value |
3 | (1+2) Call a member and return a value * |
4 | Set a property |
5 | (1+4) Set a property with a member call * |
6 | (2+4) Set a property and return a value * |
7 | (1+2+4) Set a property and return a value with a member call * |
8 | Set a property by reference |
9 | (1+8) Set a property by reference with a member call * |
10 | (2+8) Set a property by reference and return a value * |
- type1 - The variable type, can be:
- i1 -
- i2 -
- i4
- ui1
- ui2
- ui4
- int
- uint
- r4
- r8
- cy
- date
- decimal -
- bool
- bstr
- variant
- dispatch
- unknown
- value1 - the value assigned to the variable type
Example
Echo the value of $dlevel to the active window:
//echo -a Default user level: $dlevel
Compatibility
Added: mIRC v4.72
Added on: 09 Jan 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also
mIRC identifier list