Difference between revisions of "On start"

From Scriptwiki
Jump to: navigation, search
 
Line 6: Line 6:
 
== Example ==
 
== Example ==
 
  on *:START: {  
 
  on *:START: {  
   server irc.quakenet.org:6667
+
   [[echo]] -s Connecting to QuakeNet
 +
  [[server]] irc.quakenet.org:6667
 
  }
 
  }
 
This example would make mIRC connect to QuakeNet whenever you start it.
 
This example would make mIRC connect to QuakeNet whenever you start it.

Revision as of 13:43, 22 November 2005

The on START event triggers the first time a script file is ever loaded and also every time after that when when mIRC is run.

on <level>:START:<commands>

You can use this event to execute everything you want to do whenever you start your mIRC (e.g. loading dialogs, connecting to several servers, updating some stats).

Example

on *:START: { 
 echo -s Connecting to QuakeNet
 server irc.quakenet.org:6667
}

This example would make mIRC connect to QuakeNet whenever you start it.


See Also

Take a look at the On load event when you want to trigger when a script file is loaded the first time.