mIRC Identifiers List
This section is under heavy construction and revision and will be changed around a bit soon. But for now the identifiers are listed somewhat in alphabetical order. This list is by no means complete. For a complete list check the mirc.hlp file that should have came with your mirc and/or read the versions.txt.
$abs(N)
Returns the absolute value of specified number.
$active
Returns the current channel window that is on top, if the status window is on top it returns Status Window.
$adate
Returns the date in dd/mm/yy format.
$address
Returns the userid@host.domain of specified user.
$address(Nick,Type)
Returns a certain part of users address specified by type, this requires
the internal address system be checked.
$addtok(text,token,C)
Adds the token to the end of text if itz not already in the text.
$asc(Char)
Returns the ascii number of the character.
$asctime(N)
Converts numbers from $ctime into date format.
$away
Returns $true or $false depending on whether or not you are marked away.
$banmask
Returns address that was banned.
$bnick
When someone sets a ban, if a nick is included in the ban mask then you
can use $bnick to grab it. If the banmask doesn't contain a nick then
the $bnick identifier will return $null.
$cb
Returns the first 256 characters in the clipboard.
$chr(N)
Returns the ascii character of the number specified.
$chan
Returns the channel where the triggered event happened.
$chan(N)
Returns the name of the Nth Channel you're in. If N is 0 returns the number of channels you're in.
$chat(N)
Returns the nick of the user in the Nth dcc chat window.
$clevel
Returns the level that triggered the event.
$count(string,substring)
Returns the number of times substring occurs in string.
$cr
Returns a carriage return - same as $chr(13)
$ctime
Returns the amount of time elapsed since 00:00:00 GMT, January 1, 1970.
$date
Returns the date in mm/dd/yy format.
$day
Returns the name of the current day.
$dde
Refer to DDE Scripting Section for info on this one.
$dir[="Choose File:"] {path}
Opens a window showing all files in the specified dir. After file is selected, Returns selected filename.
$dlevel
Returns the default user level.
$duration(N)
Converts N into a time.
$exists
Tests to see whether or not a file exists and returns $true or $false.
$findtok(text,token,C)
Returns the position of the token in the text.
$file[="Choose File:"] {path}
Same as $dir only smaller window. Returns selected filename.
$filename
Returns the name of file sent or being received.
$fulldate
Returns the fulldate in Wed Oct 23 11:06:45 1996 format.
$get(N)
Returns the nick and file of the Nth dcc get. if N is 0 Returns the number of dcc gets.
$getdir
Returns the dcc get directory in dcc options.
$gettok(text,N,C)
Returns Nth charaters of text using C Charater as a token seperator.
$hfile[="Choose File:"]
Same as $file only lists files horizontally. Returns selected filename.
$host
Returns your host name.
$instok(text,token,N,C)
Inserts token into text where the specified Character occurs.
$ip
Returns your ip number.
$left(N,text)
Returns the N left characters of text.
$len(text)
Returns the length of text.
$level(address)
Returns the level of the address in the Remote, Users list.
$lf
Returns the line feed character, same as $chr(10)
$lines(file)
Returns the total numbers of lines in a file.
$lof(file)
Returns the size of a file in bytes.
$logdir
Returns the directory where log files are stored.
$longip(ip)
Returns the Long IP of specified ip.
$lower(text)
Returns the text in lowercase.
$mask(Address,type)
Returns the address mask depending on the specified type.
$me
Returns your current nick.
$mid(S,N,text)
Returns the Nth left characters of text starting at position S.
$mircdir
Returns the current dir of mIRC.
$mode(chan)
Returns the mode of specified channel, you must be on channel specified.
$nick - C,E
Returns the nick of user who triggered the event or command.
$nick(N,chan)
Returns the nick of Nth user on specified channel.
$nopath(file)
Returns the filename, without a path.
$nopnick(N,chan)
Returns the nick of the Nth non-op'd user on specified channel.
$notify(N)
Returns the Nth nick in your notify list currently on IRC.
$opnick
Use with ON OP and ON DEOP. Returns the nick of user who was deop'd or op'd.
$opnick(N,chan)
Returns the nick of Nth op'd nick on specified channel.
$parms
Returns all the words for a specified occurance.
$parmN
Returns the Nth word in a specified occurance.
$port
Returns the port that you are currently connected to.
$pos(string,substring)
Returns the number indicating the position of substring in string.
$query(N)
Returns the Nick of user in the Nth query window. If N is 0 returns total number of open query windows.
$r(val1,val2)
Returns a random integer where val1 and val2 can be lowercase letters, uppercase letters, or numbers.
$rand(val1,val2)
Same as $r
$read {file}
Returns a random line from a text file.
$read [-nl# -stext] {filename}
-l# returns the spcified line number.
-stext will search the text file for a line beginning with specified text.
-n will treat the line as normal text.
$readini {file} {section} {item}
Returns the text found in file at section under item.
$remove(string,substring)
Removes any occurence of substring in string and returns whats left.
$remtok(text,token,C)
Removes the fist occurance of the token from the text.
$replace(string,substring,newstring)
Finds substring in string and replaces it with the newstring.
$reptok(text,token,newtoken,C)
Replaces the token in text with the new token.
$send(N)
Returns the nick and filename of Nth dcc send, if N is 0 returns number of dcc sends.
$server
Returns the name of server you are currently connected to.
$snicks
Returns a string of the currently highlighted nicks.
$snick(N,chan)
Returns the nick of the Nth highlighted nick on specified channel.
$snotify
Returns the nick of currently selected nick in notify list.
$str(N,text)
Returns a string of text N number of times.
$time
Returns curent time in hh:mm:ss format.
$timestamp
Returns the time in [hh:mm] format.
$token(N,C,text)
Returns Nth charaters of text using C Charater as a token seperator.
$topic(chan)
Returns topic of specified channel, you must be on specified channel.
$upper(text)
Returns text in uppercase.
$url
Returns the currently active url in your web browser.
$wavdir
Returns directory of wavs.
This page hosted by Get your own Free Homepage
©1996 The Scripters Guild All Rights Reserved
Please send all questions and comments to TiAMaT