From WikiChip
Difference between revisions of "mirc/on events/on signal"
< mirc‎ | on events

(Created page with "{{mirc title|On Signal - Events}} The '''ON SIGNAL''' event triggers after a call to the /signal command. This is a mechanism used to signal events in multiple script at the s...")
 
m (Parameters: Link access levels)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{mirc title|On Signal - Events}}
 
{{mirc title|On Signal - Events}}
The '''ON SIGNAL''' event triggers after a call to the /signal command. This is a mechanism used to signal events in multiple script at the same time
+
The '''ON SIGNAL''' event triggers after a call to the {{mirc|/signal}} command. This is a mechanism used to signal events in multiple script at the same time
  
 
You can use {{mirc|$signal}} to refer to the name of signal triggering the event and you can use {{mIRC|$1-}} to refer to the parameters passed to /signal
 
You can use {{mirc|$signal}} to refer to the name of signal triggering the event and you can use {{mIRC|$1-}} to refer to the parameters passed to /signal
Line 8: Line 8:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger.
+
<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 matchtext for the event to trigger.
 
<span style="display: inline-block; width: 105px;">'''<matchtext>'''</span>The matchtext for the event to trigger.
 +
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
 
  
 
== Example ==
 
== Example ==
Line 21: Line 22:
 
== See Also ==
 
== See Also ==
 
{{mirc|$signal}}
 
{{mirc|$signal}}
 +
{{mirc|/signal}}
 +
  
 
[[Category:mIRC on events|signal]]
 
[[Category:mIRC on events|signal]]

Latest revision as of 07:06, 6 February 2024

The ON SIGNAL event triggers after a call to the /signal command. This is a mechanism used to signal events in multiple script at the same time

You can use $signal to refer to the name of signal triggering the event and you can use $1- to refer to the parameters passed to /signal

Synopsis[edit]

ON <level>:signal:<matchtext>:<commands>

Parameters[edit]

<level>The corresponding access levels for the event to trigger.

<matchtext>The matchtext for the event to trigger.

<commands>The commands to be performed when the event listener's criteria is met.

Example[edit]

ON *:signal:*:echo -s $signal -- $1-

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]

$signal /signal