MIRC scripting language


The mIRC scripting language is the scripting language embedded in mIRC, an IRC client for Windows.

Primary uses

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.

Language features

mIRC scripting language uses its own nomenclature to refer to language constructs.
The above is intended for singular access to the file. Because each time you issue $read or /write you open and close the file for access.
Multiple accesses, during a loop for instance, is best handled through /fopen, /fwrite and /fclose. Since this opens the file only once. In some cases /filter and /savebuf is an even more efficient method.
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 "alias". Test Comments include the common /* comment */ and ;comment.
Here is an example of a Hello World alias:

;Defines the alias 'hello' in the remote script
;Note: if this is placed in an alias script,
;the 'alias' part must be removed (result: hello