MIRC scripting language

1

The mIRC scripting language (often unofficially abbreviated to "mSL" ) is the scripting language embedded in mIRC and Adiirc, IRC clients for Windows but work with WiNE for Linux.

Primary uses

Script storage

Scripts are stored as either plain text files, usually with a .mrc file extension, or as INI files. They, however, can be stored with any extension. Multiple script files can be loaded at one time, although in some cases, one script will conflict with another and cause one or both of them to no longer work properly. The order in which in the script files are loaded may make a difference if the script functions properly or not. A (un)loader-script MUST be used for semi-large scripts to function as intended.

Language features

mIRC scripting language uses its own nomenclature to refer to language constructs. (However, whilst this can be a little confusing to newcomers, they do not impact on the functionality of mSL.)

File handling

The above is intended for singular access to the file. Because each time you issue or you open and close the file for access. Multiple accesses, during a loop for instance, is best handled through, and. Since this opens the file only once. In some cases and is an even more efficient (non scripted loop) method.

Binary variables

Hash tables

Global variables

Local variables

Limitations

Code examples

The code below is in the remote scripts format. If placed into an alias file, the command names should not be preceded by the word " ". Test Comments include the common and. Here is an example of a Hello World alias: A remote script to automatically respond to certain text

This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
Bliptext is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation.

View original