From WikiChip
Difference between revisions of "mirc/on events/on start"
m (bot: cat fixing naming) |
m (→See Also: Fix See Also) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Start - Events}} | ||
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. | 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. | ||
Line 27: | Line 28: | ||
}</source> | }</source> | ||
==Compatibility== | ==Compatibility== | ||
− | + | {{mIRC compatibility|5.0}} | |
− | |||
− | |||
==See Also== | ==See Also== | ||
Line 35: | Line 34: | ||
*[[On unload - mIRC|ON UNLOAD]] | *[[On unload - mIRC|ON UNLOAD]] | ||
*[[On exit - mIRC|ON EXIT]] | *[[On exit - mIRC|ON EXIT]] | ||
− | * | + | *{{mIRC|/load}} |
{{mIRC on event list}} | {{mIRC on event list}} | ||
[[Category:mIRC on events|start]] | [[Category:mIRC on events|start]] |
Latest revision as of 14:50, 5 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
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[edit]
on <level>:START:<commands>
Parameters[edit]
- <level>
- <commands>
Examples[edit]
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[edit]
Added: mIRC v5.0
Added on: 02 Apr 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC on event list