From WikiChip
Difference between revisions of "mirc/identifiers/$vcmd"
< mirc‎ | identifiers

m (Bot: Fixing links)
m
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
The '''$vcmd''' identifier is used to retrieve commands in the voice command list.
+
{{mirc title|$vcmd Identifier}}The '''$vcmd''' identifier is used to retrieve commands in the voice command list.
  
= Synopsis =
+
 
 +
== Synopsis ==
 
<pre>$vcmd(N)</pre>
 
<pre>$vcmd(N)</pre>
  
= Paramters =
+
== Parameters ==
 
<span style="display: inline-block; width: 30px;">'''N'''</span>Used to specify the Nth command in the list, or can be 0 to retrieve the total amount of commands in the voice command list.
 
<span style="display: inline-block; width: 30px;">'''N'''</span>Used to specify the Nth command in the list, or can be 0 to retrieve the total amount of commands in the voice command list.
  
= Example =
+
== Properties ==
'''Echo the total amount of voice commands to the active window'''
+
None
 +
 
 +
== Examples ==
 +
Echo the total amount of voice commands to the active window:
 
<pre>//echo -a $vcmd(0)</pre>
 
<pre>//echo -a $vcmd(0)</pre>
  
= Example =
+
Echo the 3rd command in the voice command list to the active window:
'''Echo the 3rd command in the voice command list to the active window'''
 
 
<pre>//echo -a $vcmd(3)</pre>
 
<pre>//echo -a $vcmd(3)</pre>
  
= Example =
+
Echo the entire list of voice commands to the active window:
'''Echo the entire list of voice commands to the active window'''
 
 
<source lang="mIRC">//var %i = 1 | while (%i <= $vcmd(0)) { echo -a $vcmd(%i) | inc %i }</source>
 
<source lang="mIRC">//var %i = 1 | while (%i <= $vcmd(0)) { echo -a $vcmd(%i) | inc %i }</source>
 +
 +
== Compatibility ==
 +
{{mIRC compatibility|6.0}}
  
 
= See also =
 
= See also =
Line 23: Line 28:
 
* {{mIRC|/vcmd}}
 
* {{mIRC|/vcmd}}
 
* {{mIRC|/vcrem}}
 
* {{mIRC|/vcrem}}
* [[$vcmdver identifier - mIRC|$vcmdver]]
+
* {{mIRC|$vcmdver}}
* [[$vcmdstat identifier - mIRC|$vcmdstat]]
+
* {{mIRC|$vcmdstat}}
* [[On vcmd - mIRC|ON VCMD Event]]
+
* {{mIRC|on vcmd}}
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|vcmd]]

Latest revision as of 18:11, 22 September 2017

The $vcmd identifier is used to retrieve commands in the voice command list.


Synopsis[edit]

$vcmd(N)

Parameters[edit]

NUsed to specify the Nth command in the list, or can be 0 to retrieve the total amount of commands in the voice command list.

Properties[edit]

None

Examples[edit]

Echo the total amount of voice commands to the active window:

//echo -a $vcmd(0)

Echo the 3rd command in the voice command list to the active window:

//echo -a $vcmd(3)

Echo the entire list of voice commands to the active window:

//var %i = 1 | while (%i <= $vcmd(0)) { echo -a $vcmd(%i) | inc %i }

Compatibility[edit]

Added: mIRC v6.0
Added on: 03 Feb 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also[edit]

[Expand]
v · d · e mIRC identifier list