on close
Indice
The ON CLOSE event triggers within mIRC when a specific window type is closed, either locally, through server interaction, or due to a scripted circumstance. This event can be used to trigger scripted situations for actions to perform when a certain window is closed.
The ON CLOSE event triggers the $target identifier to be filled with the window related to the event. This identifier can now be used to reference the specific window during these events.
| Contents - 1 Synopsis - 2 Parameters - 3 Examples - 4 Compatibility - 5 See Also |
Synopsis
ON <level>:CLOSE:<?|@|=|!|*>:<commands>
Parameters
**
**<?|@|=|!|*>**The window type that the event should trigger for:
**?**Private messages/query windows.
**=**DCC Chat windows.
**!**DCC Fileserv windows.
*All window types.
**
Examples
; When DCC Chats are closed, send a notice to
; the person.
ON *:CLOSE:=:notice $nick Hey, thank you so much for the chat!
; When any window is closed, echo the window name
; to a custom @windowWatcher window. If that window doesn't exist,
; create it first.
ON *:CLOSE:*: {
$iif(!$window(@windowWatcher),window @windowWatcher)
echo @windowWatcher Window Closed: $target $+ .
}
Compatibility
Added: mIRC v5.3
Added on: 12/13/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 |