From WikiChip
Difference between revisions of "mirc/on events/on vcmd"
m (PatrolBot moved page On vcmd - mIRC to mirc/on events/on vcmd: per new naming convention) |
(fixed) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Vcmd - Events}} | ||
The '''on VCMD''' event triggers when the Speech recognition software matches a word you have spoken to a word in a list of words. | The '''on VCMD''' event triggers when the Speech recognition software matches a word you have spoken to a word in a list of words. | ||
== Synopsis == | == Synopsis == | ||
+ | <pre>ON <level>:VCMD:<matchtext>:<*|#|?|@>:<commands></pre> | ||
− | < | + | == Parameters == |
+ | <span style="display: inline-block; width: 105px;"> '''<level>'''</span>The corresponding {{mIRC|access levels}} for the event to trigger. | ||
+ | |||
+ | <span style="display: inline-block; width: 105px;"> '''<matchtext>'''</span> - The corresponding {{mIRC|on text|matchtext}} for the event to trigger. | ||
− | |||
<span style="display: inline-block; width: 105px;">'''<*|#|?|@>'''</span>The location from which you want to listen for spoken word. | <span style="display: inline-block; width: 105px;">'''<*|#|?|@>'''</span>The location from which you want to listen for spoken word. | ||
Line 11: | Line 15: | ||
== Example == | == Example == | ||
− | |||
<source lang="mIRC"> | <source lang="mIRC"> | ||
alias vctest { | alias vctest { | ||
Line 32: | Line 35: | ||
== See Also == | == See Also == | ||
− | * {{mIRC| | + | * {{mIRC|on events|mIRC - on events}} |
* {{mIRC|/vcmd}} | * {{mIRC|/vcmd}} | ||
* {{mIRC|/vcadd}} | * {{mIRC|/vcadd}} | ||
Line 40: | Line 43: | ||
* {{mIRC|$vcmd}} | * {{mIRC|$vcmd}} | ||
− | [[Category: | + | [[Category:mIRC on events]] |
Latest revision as of 15:08, 29 August 2025
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The on VCMD event triggers when the Speech recognition software matches a word you have spoken to a word in a list of words.
Synopsis[edit]
ON <level>:VCMD:<matchtext>:<*|#|?|@>:<commands>
Parameters[edit]
<level>The corresponding access levels for the event to trigger.
<matchtext> - The corresponding matchtext for the event to trigger.
<*|#|?|@>The location from which you want to listen for spoken word.
<commands>The commands to be performed when the event listener's criteria is met.
Example[edit]
alias vctest { if ($vcmdver == $null) halt vcmd -c on vcadd connect Dalnet, connect Efnet, connect Undernet, connect IRCnet vcadd Part Channel, Disconnect, List Commands, Moo Cow } on 1:vcmd:connect*:*:server $2 on 1:vcmd:part channel:*:if ($active ischan) part $active on 1:vcmd:disconnect:*:quit on 1:vcmd:list commands:*:vcmd -l on 1:vcmd:moo cow:*:splay moo.wav on 1:vcmd:*:*:echo You said: $1-
Compatibility[edit]
Added: mIRC v5.7
Added on: 02 Feb 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.