Commands and Identifiers
In this section we will try to cover some of the mIRC commands that are use in scripting. This commands are placed in either your Remote, Alias, or Popup sections of your mIRC program. We will try to make it as detailed as possible so you can grasp the general idea of scripting. These commands can make your mIRC experience fun and also by using specific commands and identifiers can cut down on a lot less typing. Well let me try to explain to the best of my ability. If there are things you still don't understand u can visit us at #0A+mIRC_HELP_CHANNEL and we will try to further explain. Please be reminded that this section will be in no comparison to what you can learn in the FAQ (FAQ = Frequently Asked Questions) which can also be downloaded at this site. The Faq is a much more detailed version than what I will be covering here.
/Alias
This adds, removes, replaces aliases, however it is limited to single line aliases and will not affect multiple line definations. To add a new alias you can use: /alias /wave /me waves! This will add the /wave alias to the top of the list. To remove an existing alias: /alias /moo To add an alias to a specific alias file, you would use: /alias wave.txt/wave/me waves! If you do not use a specific filename, it defaults to using the first filename in which the alias exists, or if it doesn't exist then it uses the first loaded alias file
/AMSG
This and the /ame command send the specified message or action to all channels which you are currently on.
/AUSER
This and remote related commands are listed in the remote section.
/AUTO
This adds someone to the ops list, see the control section for full description.
/AWAY
Leave a message that you are not currently paying attention tomIRC. Wheneversomeone sends you a MSG or does a WHOIS on you, they automatically see whatever message you set. Using AWAY with no parameters marks you as no longer as being away. example: /away off to get something to eat, back in a moment!
/BAN
This bans someone
from the current channel using their address. To do thi,
it first does a /userhost on the user, which gives it the
users address, and then it does a /mode#+b
/BEEP
This beeps a number of times with a delay
/CHANNEL
This pops up the channel central window (only works in a channel)
/CLEAR
This clears the entire scrollback buffer of the current window. If you specify a windows name, that windows buffer will be cleared
/CLOSE
This closes all windows of the specified type and nicknames. If no nicknames are given, all windows of the specified type are closed. The type of windows if denoted by c for chat, f for ffserve, g for get, i for inactive dcc windows, m for message and query, s for send. If u wanted to close all chat and fserve windows for user Nerp /close -cf Nerp
/CLOSEMSG
This closes the specified message window
/CREQ
This is the command equilivant of setting the DCC chat request radio buttons in the dcc options dialog (see /sreq below)
/CTCPREPLY
This sends a reply to a ctcp query: /ctcpreply goat HELP no help available
/DCC
This initiates a sending of a file to
another user. It can take multiple file names, the format
is: /dcc send
/DDE
This allows you to send information to other applications. See the DDE Control section for a full explanation.
/DISCONNECT
This forces a hard disconnect from a server. This is different from the /quit command which sends a quit message to the server and waits for the server to disconnect you.
/DNS
This is used to resolve an address. If mIRC sees a "." in the nick you specify it assumes it's an address and tries to resolve it. Otherwise it assumes it's a nickname and does a /userhost to find the users addressand then resolves it. If u give it an IP address, it looks up the host name.
/ECHO
This prints text in the specified window using the specified color (0 to15). /echo 3 #A0+mIRC_HELP_CHANNEL Testing, would print "Testing" in the color green in channel window #0A+mIRC_HELP_CHANNEL, assuming it's already open. To print in the status window use the -s switch, to print in the currently active window use the -a switch. Note: This text is only printed in your window, it isn't sent to the server.
/EXIT
This forces mIRC to close down and exit
/FINGER
This does a finger on a user. If you specify an address then the address is immediately fingered. If u specify a nickname then the users address is looked up using a /userhost and then it is fingered.
FLUSHINI
This flushes the specified INI file to the hard disk. This is necessary because the way INI files are cached to memory, so you might need to do this to make sure that your INI file doesn't lose information if your updating the INI file frequently.
/FONT
This pops up the font dialogue for the current window
/FSEND
This allows u to turn fast send on or off
/FSERVE
This initiates a fileserver session to another user. See the fileserver section.
/GOTO
This is used in a script definition to jumpto different points in script. See the alias section.
/HALT
This halts a currently executing script and prevents any further processing from continuing. You can use this in remote commands to prevent mIRC frpm replying to norma; ctcp messages, or in alias to halt an alias, and any calling aliases, completely.
/HELP
This brings up the basic IRC commands in the
mIRC help file. You can also do /help
/IAL
Turns the Internal Address List on or off
/IDENTED
Turns idented server on or off, and changes to a new userid if it is specified.
/IGNORE
This allows you to ignore messages from the specified nick, see the control section for a full description.
/INVITE
Invites another user to a channel. Channel and User commands. If you have op status, the following commands give you control over both channeland the users on it.
/JOIN
Join the specified channel. example: /join #0A+mIRC_HELP_CHANNEL This will take you to the #0A+mIRC_HELP_CHANNEL . Once on a channel anything you type will be seen by all the users in this channel. The #0A+mIRC_HELP_CHANNEL is very useful, so say hello and then ask any questions you want. If a channel you specify doesn't exist, a channel with that name will be created for you.
/KICK
Kicks named user off a given channel. example: /kick #0A+mIRC_HELP_CHANNEL Ed Note: You must have operators status to initiate a kick command.
/LINKS
This retrieves the servers to which your current server is linked and lists them in a window for easy viewing and access.
/LIST
Lists currently available channels. You can also tell mIRC to show only channels with a minimum and maximum number of people. If you specify #string then mIRC will only list channels with that string in their title. example: /list example: /list -min5 -max20 example: /list #mirc, help
/LOAD
/LOADBUF
This allows you to load the specified number of lines from the end of the file of filename into the specified window. /loadbuf 20 @test info.txt . This loads the last 20 lines of info.txt into custom window @test. /loadbuf 10-40 @test info.txt . This loads lines 10 - 40 of info.txt into custom window @test.
/LOG
This allows you to switch logging on or off for a window.
/ME
Tells the current channel or query about what u are doing.
</MODE
ModeChar...Effects on channels
/MSG
Send a private message to this user without opening a private window.
/NICK
This allows you to change your current nickname
/NOTIFY
This allows you to add a nickname with a note to your notify list. If you don't specify a nickname, then a notify will be sent to the IRC server to update your notify list.
/OMSG
This and the /onotice commands sends the specified message to all channel ops on a channel. You must be a channel operator to use this command. If the #channel isn't specified, then the current channel is used.
Leave a channel...Example: /part #0A+mIRC_HELP_CHANNEL
/PARTALL
This parts all of the channels you are currently on. On IRC certain servers, you can also specify a messsage.
/Perform
This allows you to turn "Perform these commands" section of Perform dialog on and off
/PLAY
[help1] line1 line2 line3 [help2] ....
mIRC will play everything after [help1] and stop when it reaches the next topic header or end of the file. You can use $pnick identifier in commands which identifies the nick/channel to which you are playing.
/POP
This performs a delay Op on a
nickname. The purpose of this command is to prevent a
channel window from filling up with op modes changes
whenever several users have the same nickname in their
auto-op section. mIRC will pause around
/QUERY
Opens a query window to this user and sends them a private message.
/QUIT
This will disconnect you from IRC and give the optional message as the reason for your departure. (this only appears to prople who are in the same channel as you). example: /quit That's all folks!!
/RAW
This sends any parameters you apply to the server. You must know the correct RAW formatof the command you are sending. Useful for sending commands that mIRC hasn't implemented yet. The -q switch makes the raw work quietly without printing what it's sending. This command does the same as /quote in other IRC clients. /raw PRIVMSG nickname :Hellooo there!!
/REMINI
This allows you to delete whole sections or single items in an INI file. /remini my.ini 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 relatecd example. Warning: Do not use this command to modify any of the INI files currently being used by mIRC.
/REMOVE
This deletes the spacified file.
/RETURN
This halts a currently executing script and allows the calling routine to continue processing. You can also optionally return a value which will be stored in the $result identifier. The $result can then be used in the calling routine.
/RUN
This allows you to run the specified program with parameters. /run c:\net\ftp.exe sunsite.inc.edu. /run notepad.exe $? . This asks you for a parameter and runs notepad using the parameter as the filename. If you specify a non-executable file, mIRC tries to find the program associated with that file and then runs it. /run info.txt
/SAVE
Note: You can only save one section at a time.
/SAVEBUF
This allows you to save 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-40 in custom window @test to info.txt.
/SAY
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
saying "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 remotes section. Use /msg #channel
/SERVER
This connects you to a server, first disconnecting you from the current server. /server irc.server.co.uk 6667 password. 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 then will connect to the sepcified server. You can also use /server N which connects to the Nth server in the server list setup dialog. You can also use /server groupname which will cycle through all the servers in the list which have the groupname until it connects to one of them.
/SET
This allows you define and undefine your own variables.
/SOUND
This sends a sound request to another user. See the Sound Requests dialog for more information.
/SPEAK
This sends the specified text to Monologue (or Text Assist) which is a program that speaks whatever text is sent to you.
/SREQ
This is the command line equivalent of setting the DCC Send request radio buttons in the dcc option dialog (see /creq above)
/STRIP
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
This activates the specific timer to perform the specified command at a specfied interval, and optionally at a specific 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 wheather 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 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!! Timer 1 will repeat an all channels action every 20 seconds until you stop the timer. /timer5 10 60 /msg #games For more information on the latest games do /msg GaMeBoT info.
Timer5 will repest this message to channel #games every 60 seconds and stop after 10 times. /timer9 14:30 1 1 /say It's noe 2:30pm . This will wait till 2:30pm and then will announce the time once again and stop. To see a list of active timers type /timers. To see the settings 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 /timer 10 20 /ame I'm not here!! And mIRC will allocate the first free timer it finds to this command.
You can force identifiers to be reevaluated 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 exampl: /timer3? off. Will turn off all timers from 30 to 39.
/TIMESTAMP
This turns time-stamoing on/off, and attempt to timestamp most events that occur
If a window name is not specified, then the global timestamp switch is turned to on|off.
/TITLEBAR
This allows you to set the main application titlebar
/TOPIC
Changes the topic for the channel. exanple: /topic #friendly Oh what a beautiful day!!
/UNLOAD
This unloads the spefified alias or remote script file.