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

(Created On logon event - mIRC)
 
m (Parameters)
Line 8: Line 8:
 
== 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;">'''<level>'''</span>The level for the event to trigger.
 +
 +
<span style="display: inline-block; width: 105px;">'''*'''</span>The server name to be matched. Can also be a [[wildcard]].
  
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.

Revision as of 18:15, 25 June 2014

The ON LOGON event triggers immediately after mIRC has begun connection to a server, and has sent the standard PASS, NICK, and USER information to the server.

Note: This event can be prefixed with the ^ character to cause the event to trigger before the PASS, NICK, and USER information is sent to the server. Utilizing this ^ character, the events can even be halted, and no information sent to the server; this will most-likely cause a connection interruption, or disconnection entirely.

Synopsis

ON <level>:LOGON:*:<commands>

Parameters

<level>The level for the event to trigger.

*The server name to be matched. Can also be a wildcard.

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

Examples

Echo to the active window some information before the login information is sent, using the ^ prefix:

ON ^*:LOGON:echo -a Connecting to $server through the $network network...

Create a popup window which shows up after a successful connection is established:

ON ^*:LOGON:noop $input(Successfully connected to: $server $+ !,io,Connection Successful)

The event above will generate a popup-window much like the one in the screenshot below:

Displays a screenshot for the Onlogon event example.

Compatibility

Added: mIRC v6.03

Added On: 16/08/2002

See Also