From WikiChip
Editing mirc/identifiers/$com
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{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 | + | {{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 |
Line 5: | Line 5: | ||
<pre>$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. | <pre>$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 | $com(name/N) - returns the name of the Nth open COM connection or the name of that connection if it's open | ||
Line 12: | Line 11: | ||
== Paramters == | == Paramters == | ||
* '''name/N''' - The name of the connection or the Nth connection | * '''name/N''' - The name of the connection or the Nth connection | ||
− | |||
* '''member''' - The name of the function of the object | * '''member''' - The name of the function of the object | ||
* '''method''' - A combination of the following value added together: | * '''method''' - A combination of the following value added together: | ||
+ | ** '''1''' = DISPATCH_METHOD | ||
+ | ** '''2''' = DISPATCH_PROPERTYGET | ||
+ | ** '''4''' = DISPATCH_PROPERTYPUT | ||
+ | ** '''8''' = DISPATCH_PROPERTYPUTREF | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Value !! Method | ! Value !! Method | ||
|- | |- | ||
− | | 1 || | + | | 1 || Call a member of an object |
|- | |- | ||
− | | 2 || | + | | 2 || Return a value |
|- | |- | ||
| 3 || (1+2) Call a member and return a value * | | 3 || (1+2) Call a member and return a value * | ||
|- | |- | ||
− | | 4 || | + | | 4 || Set a property |
|- | |- | ||
| 5 || (1+4) Set a property with a member call * | | 5 || (1+4) Set a property with a member call * | ||
Line 33: | Line 35: | ||
| 7 || (1+2+4) Set a property and return a value with a member call * | | 7 || (1+2+4) Set a property and return a value with a member call * | ||
|- | |- | ||
− | | 8 || | + | | 8 || Set a property by reference |
|- | |- | ||
| 9 || (1+8) Set a property by reference with a member call * | | 9 || (1+8) Set a property by reference with a member call * | ||
Line 41: | Line 43: | ||
* '''type1''' - The variable type, can be: | * '''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 | * '''value1''' - the value assigned to the variable type | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Example == | == Example == | ||
− | <source lang="mIRC"></source> | + | Echo the value of '''$dlevel''' to the active window: |
+ | <source lang="mIRC">//echo -a Default user level: $dlevel</source> | ||
== Compatibility == | == Compatibility == | ||
− | {{mIRC compatibility| | + | {{mIRC compatibility|4.72}} |
== See Also == | == See Also == | ||
− | * {{mIRC|$ | + | * [[List of on events - mIRC|ON Events]] |
− | * {{mIRC|$ | + | * {{mIRC|$clevel}} |
− | * {{mIRC| | + | * {{mIRC|$event}} |
− | + | * {{mIRC|$ulevel}} | |
+ | {{mIRC identifier list}} | ||
− | [[Category:mIRC identifiers| | + | [[Category:mIRC identifiers|dlevel]] |