on input
Indice
The ON INPUT event triggers when text is entered into an mIRC editbox, then followed by an enter-key press.
| Contents - 1 Synopsis - 2 Parameters - 3 Examples - 4 Compatibility - 5 See Also |
Synopsis
ON <level>:INPUT:<*#?=!@>:<commands>
Parameters
**
**<*#?=!@>**The window type that this event should monitor.
*Any window
**#**Any channel, or specific channel name(s)
**?**Query windows
**=**DCC Chat windows
**!**Fserve windows
**@**Custom windows
**
Examples
If ^scripts is entered into an editbox, echo the total amount of loaded scripts to the active window:
ON *:INPUT:*: {
if ($1 == ^scripts) {
echo -a There are $script(0) script(s) loaded.
haltdef
}
}
The results would look something like this:
There are 9 total script(s) loaded.
The example above makes use of the /haltdef command, which prevents mIRC from performing the default operation for this event. If there were no /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.
Compatibility
Added: mIRC v5.0
Added on: 04/02/1997
Note: Individual switches were not taken into consideration.
See Also
mIRC on event list
| A on Action, on Active, on Agent”), on Appactive B on Ban C on Chat, on Chatclose”), on Chatopen”), on Close, on Connect, on Connectfail, on Ctcpreply D on Dccserver, on Dehelp, on Deop, on Deowner, on Devoice, on Dialog, on Disconnect, on Dns E on Error, on Exit F on Filercvd, on Filesent G on Getfail | H on Help, on Hotlink I on Input, on Invite J on Join K on Keydown, on Keyup, on Kick L on Load, on Logon M on Me”), on Midiend, on Mode, on Mp3end N on Nick, on Nosound, on Notice, on Notify O on Op, on Open, on Owner P on Part, on Ping, on Playend, on Pong | Q on Queryclose”), on Queryopen”), on Quit R on Rawmode S on Sendfail, on Serv, on Servclose”), on Servermode, on Serverop, on Servopen”), on Signal”), on Snotice, on Sockclose”), on Socklisten, on Sockopen, on Sockread, on Sockwrite, on Start T on Text, on Topic U on Udpread, on Udpwrite, on Unban, on Unload, on Unotify, on Usermode | V on Vcmd, on Voice W on Wallops, on Waveend |