From WikiChip
Difference between revisions of "mirc/on events/on action"
< mirc‎ | on events

(See Also)
Line 42: Line 42:
 
* [[List of on events - mIRC|mIRC Events]]
 
* [[List of on events - mIRC|mIRC Events]]
  
{{Navbox
+
{{mIRC on event list}}
|name        = template:mIRC command list
 
|title      = mIRC commands list
 
|content    =
 
  
<!-- Commands -->
 
<table cellpadding="15px;" cellspacing="0" style="text-align: justify;">
 
<tr>
 
<td valign="top" style="width: 25%;">
 
'''A'''
 
[[On - mIRC|ON Action]], [[On - mIRC|ON Active]], [[On - mIRC|ON Agent]], [[On - mIRC|ON Appactive]]
 
 
'''B'''
 
[[On - mIRC|ON Ban]]
 
 
'''C'''
 
[[On - mIRC|ON Chat]], [[On - mIRC|ON Chatclose]], [[On - mIRC|ON Chatopen]], [[On - mIRC|ON Close]], [[On - mIRC|ON Connect]], [[On - mIRC|ON Connectfail]], [[On - mIRC|ON Ctcpreply]]
 
 
'''D'''
 
[[On - mIRC|ON Dccserver]], [[On - mIRC|ON Dehelp]], [[On - mIRC|ON Deop]], [[On - mIRC|ON Deowner]], [[On - mIRC|ON Devoice]], [[On - mIRC|ON Dialog]], [[On - mIRC|ON Disconnect]], [[On - mIRC|ON Dns]]
 
 
'''E'''
 
[[On - mIRC|ON Error]], [[On - mIRC|ON Exit]]
 
 
'''F'''
 
[[On - mIRC|ON Filercvd]], [[On - mIRC|ON Filesent]]
 
</td>
 
 
<td valign="top" style="width: 25%;">
 
'''G'''
 
[[On - mIRC|ON Getfail]]
 
 
'''H'''
 
[[On - mIRC|ON Help]], [[On - mIRC|ON Hotlink]]
 
 
'''I'''
 
[[On - mIRC|ON Input]], [[On - mIRC|ON Invite]]
 
 
'''J'''
 
[[On - mIRC|ON Join]]
 
 
'''K'''
 
[[On - mIRC|ON Keydown]], [[On - mIRC|ON Keyup]], [[On - mIRC|ON Kick]]
 
 
'''L'''
 
[[On - mIRC|ON Load]], [[On - mIRC|ON Logon]]
 
</td>
 
 
<td valign="top" style="width: 25%;">
 
'''M'''
 
[[On - mIRC|ON Me]], [[On - mIRC|ON Midiend]], [[On - mIRC|ON Mode]], [[On - mIRC|ON Mp3end]]
 
 
'''N'''
 
[[On - mIRC|ON Nick]], [[On - mIRC|ON Nosound]], [[On - mIRC|ON Notice]], [[On - mIRC|ON Notify]]
 
 
'''O'''
 
[[On - mIRC|ON Op]], [[On - mIRC|ON Open]], [[On - mIRC|ON Owner]]
 
 
'''P'''
 
[[On - mIRC|ON Part]], [[On - mIRC|ON Ping]], [[On - mIRC|ON Playend]], [[On - mIRC|ON Pong]]
 
 
'''Q'''
 
[[On - mIRC|ON Queryclose]], [[On - mIRC|ON Queryopen]], [[On - mIRC|ON Quit]]
 
 
'''R'''
 
[[On - mIRC|ON Rawmode]]
 
</td>
 
 
<td valign="top" style="width: 25%;">
 
'''S'''
 
[[On - mIRC|ON Sendfail]], [[On - mIRC|ON Serv]], [[On - mIRC|ON Servclose]], [[On - mIRC|ON Servermode]], [[On - mIRC|ON Serverop]], [[On - mIRC|ON Servopen]], [[On - mIRC|ON Signal]], [[On - mIRC|ON Snotice]], [[On - mIRC|ON Sockclose]], [[On - mIRC|ON Socklisten]], [[On - mIRC|ON Sockopen]], [[On - mIRC|ON Sockread]], [[On - mIRC|ON Sockwrite]], [[On - mIRC|ON Start]]
 
 
'''T'''
 
[[On - mIRC|ON Text]], [[On - mIRC|ON Topic]]
 
 
'''U'''
 
[[On - mIRC|ON Udpread]], [[On - mIRC|ON Udpwrite]], [[On - mIRC|ON Unban]], [[On - mIRC|ON Unload]], [[On - mIRC|ON Unotify]], [[On - mIRC|ON Usermode]]
 
 
'''V'''
 
[[On - mIRC|ON Vcmd]], [[On - mIRC|ON Voice]]
 
 
'''W'''
 
[[On - mIRC|ON Wallops]], [[On - mIRC|ON Waveend]]
 
</td>
 
 
</tr>
 
</table>
 
<!-- END -->
 
 
}}<noinclude>
 
[[Category:mIRC]]
 
[[Category:Navigation templates]]
 
</noinclude>
 
 
[[Category:mIRC on events]]
 
[[Category:mIRC on events]]

Revision as of 21:48, 26 June 2014

The ON ACTION event monitors /me action events inside of a channel, or a query window.

Synopsis

ON <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands>

Parameters

<level>The level for the event to trigger. For instance if a user has an access level of 10, but this event triggers at level 15, the event would not fire.

<matchtext>The text to match in the event. This can be a single wildcard, *, for all matches or wildcard matches in general, such as: *end In this case, the event looks for any text ending in end.

<*><?><#[,#]>The place, or places where the event listens.

*Any window
?Query windows
#Any channel
[,#]Specific channel names

<commands>The commands to be performed when the event listener's criteria is met.

Examples

Listens for if anyone uses the word slap anywhere in an action inside of any channel

ON *:ACTION:* slap *:#:msg # $nick $+ ! Why would you slap anyone?!?!?

The above code listens for the action event, looks for if the user used the word slap in any channel, and then responds accordingly.

Note: The wildcard search, with a space between them and the word, means this event will not trigger if any other characters are touching the word slap. This includes words such as: slaps, slapper, myslap, etc.

Listen for any action inside of a private message and responds

ON *:ACTION:*:?:msg $nick Well, I have no idea why I'm responding to this automatically, $nick $+ . You said: $1-

This code will listen for any action event in a private message, and respond with a silly message.

Compatibility

Added: mIRC v3.5

Added On: 07/08/95

See Also