From WikiChip
Difference between revisions of "mirc/on events/on start"
m (Bot: Adding a template (template:mIRC on event list)) |
m (Bot: Fixing links) |
||
Line 1: | Line 1: | ||
− | The '''on start''' event triggers either when mIRC is started, or a script file is loaded, either through the scripts editor, or via the | + | The '''on start''' event triggers either when mIRC is started, or a script file is loaded, either through the scripts editor, or via the {{mIRC|/load}} command. Only one '''on start''' event is allowed per script file. |
==Synopsis== | ==Synopsis== |
Revision as of 19:08, 5 July 2014
The on start event triggers either when mIRC is started, or a script file is loaded, either through the scripts editor, or via the /load command. Only one on start event is allowed per script file.
Synopsis
on <level>:START:<commands>
Parameters
- <level>
- <commands>
Examples
Add a pre-typed command to connect to certain networks upon pressing enter to the editbox:
on *:START:{ var %c $chr(124) server -m editbox -a //server irc.swiftirc.net %c irc.dal.net %c irc.efnet.org }
Create a hash table named ircpoints and load data from a file named ircpoints.hsh into the table if the file exists:
on *:START:{ if (!$hget(ircpoints)) { hmake ircpoints } if ($file(ircpoints.hsh).longfn) { hload ircpoints $v1 } }
Compatibility
Added: v2.1a
Added on: 28/02/95
See Also
mIRC on event list