From WikiChip
Editing mirc/commands/signal
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 menu}} |
− | + | Signals are a simple way of triggering signal events in multiple scripts at the same time. Once set up to listen for the signal event, either directly or indirectly (using a '''*''' wildcard), your scripts can each perform their own duties based on the signal you've provided. | |
− | + | == Signal Command == | |
− | == | + | Signals have a very simple syntax: |
<syntaxhighlight lang="mirc">/signal [-n] <name> [parameters]</syntaxhighlight> | <syntaxhighlight lang="mirc">/signal [-n] <name> [parameters]</syntaxhighlight> | ||
− | == | + | === Flags === |
− | + | '''-n''': This flag tells the ''/signal'' command to fire immediately after the end of the current routine, not after the end of the whole script processing, which is the case if you don't provide -n. | |
− | == | + | === Examples === |
− | |||
− | |||
− | |||
− | == | ||
Let's check out an example of a signal command below: | Let's check out an example of a signal command below: | ||
<syntaxhighlight lang="mirc">/signal mysignal Signal information!</syntaxhighlight> | <syntaxhighlight lang="mirc">/signal mysignal Signal information!</syntaxhighlight> | ||
Line 21: | Line 17: | ||
== Identifiers == | == Identifiers == | ||
− | + | <span style="display: inline-block; width: 85px;">''$signal''</span>Returns the signal name of the signal which triggered the current event. | |
− | + | ||
+ | <span style="display: inline-block; width: 85px;">''$1-''</span>Returns any optional parameters that have been passed along with the signal. | ||
== Example Script == | == Example Script == |