From WikiChip
Editing mirc/on events/on input

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 title|On Input - Events}}
 
 
The '''ON INPUT''' event triggers when text is entered into an [[mIRC]] editbox, then followed by an enter-key press.
 
The '''ON INPUT''' event triggers when text is entered into an [[mIRC]] editbox, then followed by an enter-key press.
  
Line 6: Line 5:
  
 
== Parameters ==
 
== 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;">'''<level>'''</span>The level for the event to trigger.
  
 
<span style="display: inline-block; width: 105px;">'''<*#?=!@>'''</span>The window type that this event should monitor.
 
<span style="display: inline-block; width: 105px;">'''<*#?=!@>'''</span>The window type that this event should monitor.
Line 28: Line 27:
 
<source lang="mIRC">ON *:INPUT:*: {
 
<source lang="mIRC">ON *:INPUT:*: {
 
   if ($1 == ^scripts) {
 
   if ($1 == ^scripts) {
     echo -a There are $script(0) script(s) loaded.
+
     echo -a There are $script(0) total scripts loaded.
 
     haltdef
 
     haltdef
 
   }
 
   }
Line 34: Line 33:
  
 
The results would look something like this:
 
The results would look something like this:
<pre>There are 9 total script(s) loaded.</pre>
+
<pre>There are 9 total scripts loaded.</pre>
  
The example above makes use of the {{mIRC|/haltdef}} command, which prevents mIRC from performing the default operation for this event. If there were no {{mIRC|/haltdef}} there, mIRC would carry out the first command which was to echo the details to the active window, but then it would also either send the message to the active chat, or channel, or provide an error stating you are not currently on a channel.
+
The example above makes use of the [[/haltdef command - mIRC|haltdef command]], which prevents mIRC from performing the default operation for this event. If there was no [[/haltdef command - mIRC|haltdef command]] there, mIRC would carry out the first command, which was to echo the details to the active window, but then it would also either send the message to the active chat, or channel, or provide an error stating you are not currently on a channel.
  
 
== Compatibility ==
 
== Compatibility ==
{{mIRC compatibility|5.0}}
+
Added: mIRC v5.0
 +
 
 +
Added On: 02/04/97
  
 
== See Also ==
 
== See Also ==
 
* [[On keydown - mIRC|ON KEYDOWN]]
 
* [[On keydown - mIRC|ON KEYDOWN]]
 
* [[On keyup - mIRC|ON KEYUP]]
 
* [[On keyup - mIRC|ON KEYUP]]
{{mIRC on event list}}
 
  
[[Category:mIRC on events|input]]
+
[[Category:mIRC on events]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)