|
|
Line 1: |
Line 1: |
| {{mIRC Guide}} | | {{mIRC Guide}} |
− | 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 within mIRC when a specific window type is closed. |
− | | |
− | The '''ON CLOSE''' event triggers the {{mIRC|$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.
| |
| | | |
| == Synopsis == | | == Synopsis == |
Line 8: |
Line 6: |
| | | |
| == 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;">'''<?|@|=|!|*>'''</span>The window type that the event should trigger for:
| |
− |
| |
− | <div style="background-color: rgba(0,0,0,.03); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 30px;">'''?'''</span>Private messages/query windows.</div>
| |
− |
| |
− | <div style="background-color: rgba(0,0,0,.06); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 30px;">'''@'''</span>[[Custom Windows - mIRC|Custom @windows]]</div>
| |
− |
| |
− | <div style="background-color: rgba(0,0,0,.03); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 30px;">'''='''</span>DCC Chat windows.</div>
| |
| | | |
− | <div style="background-color: rgba(0,0,0,.06); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 30px;">'''!'''</span>DCC Fileserv windows.</div> | + | * '''<*><?><#[,#]>''' - The place, or places where the event listens, you can specify specific name of window, seperate them by comma. |
| + | ** '''*''' - Any query/dcc/custom windows |
| + | ** '''?''' - Any query windows |
| + | ** '''=''' - Any dcc chat windows |
| + | ** '''!''' - Any dcc server windows |
| + | * '''<commands>''' - The commands to be performed when the event triggers |
| | | |
− | <div style="background-color: rgba(0,0,0,.03); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 30px;">'''*'''</span>All window types.</div>
| + | == {{mIRC|Local identifiers}} == |
| | | |
− | <span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
| + | {{mIRC|$target}} is filled with the name of the window related to the event. |
| | | |
| == Examples == | | == Examples == |
Revision as of 12:56, 6 February 2016
Template:mIRC Guide
The ON CLOSE event triggers within mIRC when a specific window type is closed.
Synopsis
ON <level>:CLOSE:<?|@|=|!|*>:<commands>
Parameters
- <*><?><#[,#]> - The place, or places where the event listens, you can specify specific name of window, seperate them by comma.
- * - Any query/dcc/custom windows
- ? - Any query windows
- = - Any dcc chat windows
- ! - Any dcc server windows
- <commands> - The commands to be performed when the event triggers
$target is filled with the name of the window related to the event.
Examples
ON *:CLOSE:=:notice $nick Hey, thank you so much for the chat!
ON *:CLOSE:*: {
$iif(!$window(@windowWatcher),window @windowWatcher)
echo @windowWatcher Window Closed: $target $+ .
}
Compatibility
Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also
ON OPEN
v · d · e mIRC on event list
A
on Action, on Active, on Agent, on Appactive
B
on Ban
C
on Char, 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 Midiend, on Mode, on Mp3end
N
on Nick, on Nosound, on Notice, on Notify
O
on Op, on Open, on Owner
P
on Parseline, 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
|