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: | ||
− | |||
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 | + | <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) | + | 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 | + | <pre>There are 9 total scripts loaded.</pre> |
− | The example above makes use of the | + | 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 == | ||
− | + | 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]] | ||
− | |||
− | [[Category:mIRC on events | + | [[Category:mIRC on events]] |