Using mIRC Scripts

The mIRC Scripting Language

mIRC scripts are written for a variety of uses. They range from simple recurring actions to full fledged programs. This page is an overview of mIRC scripting, locating and using .mrc scripts. mIRC contains a built in script editor as well as an extensive help system. mIRC scripts are primarily used to enhance your client, and include protections, sharing and or getting files, games, and more. There are many user sites offering mIRC scripts. I've included links for your convenience.

With a bit of reading a practice you can also you the script editor to write your own short scripts using alias and popups. Scripts are stored as either plain text files, most commonly with a .mrc file or .ini file extension. However they may also be stored as .exe or other file extensions. The client has the ability to run multiple scripts though not all scripts are compatible with each other.

Built-in functions are called commands, or identifiers if they return a value.
Custom text-entered functions are known as Aliases. Aliases that return a value are known as custom identifiers. Aliases are called from the command line or other parts of a script.
Popups are scripted context menu items. Popups are called when they are selected by the user. Like the slap in your mIRC client.
Remotes are event-handling scripts. Remotes are called when the event they handle occurs.
Variables must be dynamically typed.
mIRC scripts make use of sigils or Identifiers whether custom or built-in, are preceded by $, binary variables are preceded by $ and other variables whether local or global are preceded by %. Commands and aliases are not preceded by any particular character although when entered from a window's command line they must be preceded by the command prefix, /.

Since mIRC scripts can read and write to files they can be used to perform actions like scheduled backups, copying, deleting and more. While I've highlighted the mIRC scripting language here I cannot offer you much more then an overview as I write in the TCL language. The information here is meant to be a jump start for users wanting information on the mIRC scripting language.

Using mIRC Scripts

Most mIRC scripts offer a readme with installation instructions. Some may also highlight compatibility issues with other scripts. Others still, may be subject to your mIRC client version. Loading and or Unloading scripts into your mIRC client is usually a simple process.
Example. The /load -rs scriptname.extension is used for scripts with the .mrc and .ini extensions.
You will come across scripts which are in the .exe format. These scripts require you to run the .exe to compile and a secondary load command like the one above to load.
The Unload command works the same way, use it to unload a script you no longer wish to run.


Alias scripts are command name(s) you create to run one or more commands. Much like a macro in Word, Aliases are used to define shortcut keys to do anything that mIRC is capable of doing. A single command, a series of commands, or long text that you may often repeat can all be accomplished with aliases.
Example: People ask often where your from. You can create an alias to answer this without the repetition of typing each time.
/home /say I'm from wherever and you
Now when asked where your from you just type /home to reply.


mIRC Popups can be used for text, information and file use. Popups are menu's which add functionality to your right click menu. Example:
Saying Hello: .Hello 1:/say hey all
.Hello 2:/me waves hello to everyone in #
.Hello 3:/me enters # and says what's up peeps


mIRC Remote Events scripts allow you to set mIRC to react to events automatically. This is the basis for bots or robot scripts that can be used to serve files, play games and more. The kind of events that can be used to trigger mIRC into any action you can script vary from set times of day to setting key-words. The use of events is not just for the creation of bots you can automate any task to any event that you choose, because it can react to text, a mIRC event script can send files it is asked for or answer simple questions in your help channel.


A mIRC remotes script can be made to include aliases, popups, events and more, all grouped together in one exchangeable file.