From WikiChip
Difference between revisions of "mirc/identifiers/$vcmd"
m (Bot: Adding a template (template:mIRC identifier list)) |
m |
||
(4 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> | ||
− | = | + | == 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. | ||
− | = | + | == Properties == |
− | + | 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> | ||
− | + | 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> | ||
− | + | 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 = | ||
− | * | + | * {{mIRC|/vcadd}} |
− | * | + | * {{mIRC|/vcmd}} |
− | * | + | * {{mIRC|/vcrem}} |
− | * | + | * {{mIRC|$vcmdver}} |
− | * | + | * {{mIRC|$vcmdstat}} |
− | * | + | * {{mIRC|on vcmd}} |
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|vcmd]] |
Latest revision as of 17:11, 22 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
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]
mIRC identifier list