mIRC Commands
The following commands are mostly unique to mIRC, though some are only modifications or extensions of standard IRC commands.
Note: To view a full list of commands see the Search dialog.
/partall [message]
Parts all of the channels you are currently on. On certain IRC Servers, you can also specify a message.
/pdcc [on | off]
If turned on, tries to speed up dcc sends by sending packets ahead of acks.
/perform [on|off]
Enables or disables the Perform form section.
/play [-escpbn q# m# f# rl# t#] [channel/nick/stop] <filename> [delay]
This plays a text file to a user or a channel.
/pop <delay> [#channel] <nickname>
Performs a delayed op on a nickname. The purpose of this command is to prevent a channel window filling up with op mode changes whenever several users have the same nickname in their auto-op section.
mIRC will pause around <delay> seconds before performing the op. If <delay> is zero, it does an immediate op. Before performing the op it checks if the user is already opped. If you do not specify the #channel, the current channel is assumed.
/pvoice <delay> [#channel] <nickname>
Works the same way as the /pop command except that voices a user.
/qmsg <message>
This and the /qme command send the specified message or action to all open query windows.
/query [-n] <nick> [message]
Opens a query window to the specified nickname. If a message is provided, it is sent.
If the -n switch is specified, the window is opened in a minimized state.
/queryrn <nick> <newnick>
Changes the nickname of an open query window.
/raw [-q] <command>
Sends any parameters you supply directly to the server. You must know the correct RAW format of the command you are sending. Useful for sending commands which mIRC hasn't implemented yet. The -q switch makes the raw work quietly without printing what it's sending. This command does the same thing as /quote in other IRC clients.
/raw PRIVMSG nickname :Hello there!
/remini <inifile> <section> [item]
Deletes whole sections or single items in an INI file.
/remini my.ini DDE ServerStatus
This would delete the ServerStatus item, and:
/remini my.ini DDE
Would delete the DDE section.
See the /writeini command below for a related example.
Warning: Do not use this command to modify any of the INI files currently being used by mIRC.
/remove [-b] <filename>
Deletes the specified file.
The -b switch deletes the file and moves it to the recycle bin.
/rename <filename> <newfilename>
Renames a file, can also be used to move a file from one directory to another.
/resetidle [seconds]
This resets the $idle identifier to zero or to the number of seconds you specify.
/rmdir <dirname>
Deletes the specified directory.
Note: If the directory contains files, it cannot be deleted.
/run [-np] <filename> [parameters]
Runs the specified program with parameters.
The -n switch minimizes the window of the application being run.
The -p switch sets the working path to the path of the application being run.
You can enclose the filename or parameters in quotes if you need to. If you specify a non-executable file, mIRC tries to open it with the application associated with that file.
/save <-pscqnm|-ruv> <filename>
|
Saves the specified popup or remote users/variables file. |
|
|
/save -ps status.ini |
saves the status popup to status.ini |
|
/save -pn nick.ini |
saves the nickname list popup to nick.ini |
|
/save -ru users.ini |
saves the user list to users.ini |
|
/save -rv vars.ini |
saves the variables list to vars.ini |
|
Note: You can only save one section at a time. |
|
|
/savebuf [-sgao] [lines] <window | dialog id> <filename> |
|
|
Saves the specified number of lines from the end of the buffer of the specified window into the specified filename. |
|
|
/savebuf 20 @test info.txt |
|
|
This saves the last 20 lines in custom window @test to info.txt. |
|
|
/savebuf 10-40 @test info.txt |
|
|
This saves lines 10 to 40 in custom window @test to info.txt. |
|
|
The -s switch saves the status window buffer, the -g switch saves the finger window buffer, and the -a switch makes it append the text to the end of a file instead of overwriting it. |
|
|
The -o switch indicates that you have specified [dialog id] parameters instead of a window name in order to save text from a custom dialog control. |
|
|
/saveini |
|
|
Updates all mIRC-related INI files with the current settings. |
|
|
/say <message> |
|
|
This lets you define an alias that writes directly to a channel as if you were saying something. So "/say Hello there" would be the same as just typing "Hello there". This is useful in an alias when you want to ask the same question (or send the same information) again and again. |
|
|
/info /say Please note that the games server is currently down and will be offline for a few hours... |
|
|
Note: You can't use this command in the remote section. Use /msg #channel <message> instead. |
|
|
/server [-emnsarpfoc] <server/groupname> [port] [password] [-i nick anick email name] [-jn #channel pass] |
|
|
Connects you to a server, first disconnecting you from the current server. |
|
|
/server irc.undernet.org 6667 mypassword |
|
|
If you type /server with no parameters, mIRC will connect to the last server you used. If you use the server command while still connected, you will be disconnected with your normal quit message and will then connect to the specified server. |
|
|
You can also use /server N which connects to the Nth server in the server list in the connect dialog. |
|
|
You can also use /server groupname which will cycle through all the servers in the server list which have that group name until it connects to one of them. |
|
|
The -e switch initiates a secure connection to an SSL capable server. Alternatively you can prefix the port number with a plus sign, eg. +7001. |
|
|
The -m switch creates a new server window for that connection and connects to the server. The -n switch does the same thing but does not connect to the server. |
|
|
The -pfoc switches prevent perform, popup favorites folder, autojoin channels, and the on connect event when you connect to a server. |
|
|
If you specify any of the -sar switches, the format of the command becomes: |
|
|
/server -sar [server] [-p port] [-g group] [-w password] [-d description] |
|
|
-s sorts the servers list |
|
|
-a adds a server. If it exists, it is updated |
|
|
-r removes a server |
|
|
mIRC tries to find a match for either the server address or the description in the existing servers list. You can also specify none for -g -w and -d to clear the current setting. |
|
|
/showmirc -mnrstxopl |
|
|
Manipulates the display of the main mIRC window, where -n = minimize, -r = restore, -s = show, -t = tray, -x = maximize, -o = on top, -p = not on top, -m = minimize according to tray settings. |
|
|
The -l switch can be used with the -nt switches to lock mIRC. |
|
|
/sline [-a|r] <#channel> <N|nick> |
|
|
Selects or de-selects lines in a channel nickname listbox. It can select either the Nth nickname in a listbox, or a specified nickname. |
|
|
If you do not specify any switches, any existing selections in the listbox are cleared. If you specify the -a switch then the specified is selected without affecting the selection states of other lines. If you specify the -r switch then the specified item is de-selected. |
|
|
/speak <text> |
|
|
Sends the specified text to Monologue (or Text Assist) which is a program that speaks whatever text is sent to it. |
|
|
Note: This feature only works with the very old versions of the above software. The new versions do not support the method that mIRC uses. |
|
|
/splay [-cwmpq] <filename> |
|
|
Plays the specified sound, see the Playing Sounds section. |
|
|
/sreq [+m|-m] [ask | auto | ignore] |
|
|
This is the command line equivalent of setting the DCC Send request radio buttons in the dcc options dialog (see /creq above). The +m|-m switch turns the minimize setting on|off. |
|
|
/strip [+-burc] |
|
|
Turns control code stripping options in Options dialog on/off. |
|
|
/strip +bur-c |
|
|
would turn bold, underline, reverse stripping on, and turn color stripping off. |
|
|
/timer[N/name] [-ceomhipr] [time] <repetitions> <interval> <command> |
|
|
Activates the specified timer to perform the specified command at a specified interval, and optionally at a specified time. |
|
|
If you are not connected to a server and you start a timer, it defaults to being an offline timer which means it will continue to run whether you are connected to a server or not. |
|
|
If you are connected to a server and you start a timer, it defaults to being an online timer, which means that if you disconnect from the server, it will be turned off. You can specify the -o switch to force it to be an offline timer. |
|
|
/timer1 0 20 /ame is AWAY! |
|
|
Timer1 will repeat an all channel action every 20 seconds until you stop the timer. |
|
|
If you specify a delay of 0 seconds, the timer will trigger immediately after the calling script ends. |
|
|
/timer5 10 60 /msg #games For more info on the latest games do /msg GaMeBoT info |
|
|
Timer5 will repeat this message to channel #games every sixty seconds and stop after 10 times. |
|
|
/timer9 14:30 1 1 /say It's now 2:30pm |
|
|
This will wait until 2:30pm and will then announce the time once and stop. |
|
|
To see a list of active timers type /timers. To see the setting for timer1 type /timer1. To deactivate timer1 type /timer1 off. To deactivate all timers type /timers off. If you are activating a new timer you do not need to specify the timer number, just use: |
|
|
/timer 10 20 /ame I'm not here! |
|
|
And mIRC will allocate the first free timer it finds to this command. |
|
|
If you specify the -c switch, this makes mIRC "catch up" a timer by executing it more than once during one interval if the real-time interval isn't matching your requested interval. |
|
|
If you specify the -m or -h switch, this indicates that the interval delay is in milliseconds. |
|
|
Note: The -h switch creates a high-resolution multimedia timer. This type of timer should only be used in critical timer situations since it uses system resources heavily. |
|
|
If you specify the -e switch, this executes the command associated with the specified timer name, also works if you specify a wildcard name. |
|
|
The $ltimer identifier returns the number of the timer that was just started by the /timer command. |
|
|
Instead of using a number you can also specify a name for a timer. |
|
|
/timershow 0 10 echo -a $nick $server $time |
|
|
You can force identifiers to be re-evaluated when used in a /timer command by using the format $!me or $!time. |
|
|
If you wish to turn off a range of timers, you can use a wildcard for the number, for example: |
|
|
/timer3? off |
|
|
Will turn off all timers from 30 to 39. |
|
|
The -pr switches pause and resume a timer respectively. |
|
|
The -i switch makes a timer dynamically associate with whatever happens to be the active connection. If a server window is closed, the timer is associated with the next available server window. |
|
|
/timestamp [-fgs|a|e] [on|off|default] [windowname] |
|
|
Turns timestamping of events on or off. If you specify default, uses the global timestamp setting. |
|
|
-s = for status window |
|
|
-a = for active window |
|
|
-e = for every window |
|
|
If a windowname is not specified, then the global timstamp switch is turned on or off. |
|
|
The -f switch allows you to set the event timestamp format, eg. /timestamp -f [HH:nn] |
|
|
The -g switch allows you to set the logging timestamp format. |
|
|
/titlebar [@window] <text> |
|
|
Sets the main application titlebar. If you specify a custom @window name, then the titlebar for that custom window is changed. |
|
|
/tnick <nickname> |
|
|
Changes your nickname to a temporary nickname, without affecting your main or alternate nicknames. |
|
|
/tokenize <c> <text> |
|
|
Fills the $1 $2 ... $N identifiers with tokens in <text> separated by character <c>, eg.: |
|
|
/tokenize 44 a,b c,d,e |
|
|
The above command would set $1 = a, $2 = b c, $3 = d, $4 = e |
|
|
/unload <-a|-nrs> <filename> |
|
|
Unloads the specified alias or remote script file. |
|
|
/unload -a aliases.ini |
unloads the alias.ini file |
|
/unload -rs script.ini |
unloads the script.ini file |
|
The -n switch prevents a script from having the on unload event triggered. |
|
|
Note: You can only unload one script at a time. |
|
|
/updatenl |
|
|
Usually the channel nicknames list and IAL in a kick/part/quit script event are updated after the script finishes, this command updates them immediately. |
|
|
/url [on | off | show | hide | -dranils] [[N | mark ] | address] |
|
|
Show or hides the URL list window, and allows you to modify the current list of addresses in it. |
|
|
The -r switch deletes the Nth item, or all items that match the mark you specify. |
|
|
The -an switches allow you to open a browser window to an address, where -a = activate browser, and -n = use a new browser window. |
|
|
The -ils switches allow you to insert an item, load, and save the list, respectively. |
|
|
/winhelp <filename> [key] |
|
|
Opens a help file with the specified search key. |
|
|
/write [-cidna l# s# w# r#] <filename> [text] |
|
|
Writes lines to a text file. For example: |
|
|
/write store.txt This line will be appended to the end of file store.txt |
|
|
The -c switch clears the file completely before writing to it, so it allows you to start with a clean slate. |
|
|
/write -c c:\info.txt This file will be erased and have this line written to it |
|
|
The -l# switch specifies the line number where the text is to be written. |
|
|
/write -l5 c:\info.txt This line will overwrite the 5th line in the file |
|
|
The -i switch indicates that the text should be inserted at the specified line instead of overwriting it. If you do not specify any text then a blank line is inserted. If you do not specify a line number then a blank line is added to the end of the file. |
|
|
/write -il5 c:\info.txt This line will be inserted at the 5th line in the file |
|
|
The -d switch deletes a line in the file. If you don't specify a line number then the last line in the file is deleted. |
|
|
/write -dl5 c:\info.txt |
|
|
The above command will delete the 5th line in the file. |
|
|
The -s# switch scans a file for the line beginning with the specified text and performs the operation on that line. |
|
|
/write -dstest c:\info.txt |
|
|
This will scan file info.txt for a line beginning with the word "test" and if found, deletes it. |
|
|
If you do not specify any switches then the text is just added to the end of the file. |
|
|
The -w# switch scans a file for the line containing the specified wildcard text and performs the operation on that line. The -r# switch implies a regex match. |
|
|
Note: With both -s# and -w# you can enclose the scan text in quotes if it contains spaces. |
|
|
The -a switch indicates that mIRC should append the line of text you specified to the existing text of the specified line. |
|
|
The -n switch prevents it from adding a $crlf to the end of the text. |
|
|
Note: You cannot use this command to write to an INI file. If you do so, you will most likely corrupt the INI file. |
|
|
/writeini -n <inifile> <section> <item> <value> |
|
|
Writes to files in the standard INI file format. |
|
|
If the -n switch is specified, mIRC will attempt to write to the .ini file even if it is larger than 64k. |
|
|
A part of the mirc.ini file looks like this: |
|
|
[DDE] |
|
|
ServerStatus=on |
|
|
ServiceName=mirc |
|
|
You could achieve this with /writeini by using: |
|
|
/writeini my.ini DDE ServerStatus on |
|
|
/writeini my.ini DDE ServiceName mirc |
|
|
You can delete whole sections or items by using the /remini command. |
|
|
Warning: Do not use this command to modify any of the INI files currently being used by mIRC. |
|