Identifiers

Identifiers

Identifiers worden enkel geëvalueerd als er // (2) slaches staan en $ vóór de identifier; vb //me $chan

Enkele identifiers:

- //me heeft $chan(0) channels open 
- //me $chan(0) = het aantal open channels .
- //me $chan(1) = de eerste open channel.
- //me heeft als lokale tijd $time
- //me vandaag is het $day ('t is wel in het Engels)
- //me $fulldate (voor de dag, maand, hoeveelste, uur, jaartal)
- Als je typt: //me zit nu op $chan dan wordt de identifier geëvalueerd volgens het actieve
kanaal. - //me heeft $os als besturingssysteem. - //me $email geeft je E-mail (natuurlijk moet je daarvoor je E-mail hebben
ingevuld in de setup). - //me $server geeft je server weer. - //me $host geeft je host weer. - //me $ip geeft je IP weer, dit zou ik niet teveel tonen, als je niet wilt genuked
worden.
- //me $active geeft de naam van de actieve window in mIRC. weer.
- //me $time geeft de lokale tijd weer
$away Tells you if you're set away or not.
$idle Returns same idle time as that returned by ctcp userinfo and finger.
$online Returns the numer of seconds elapsed on your online timer.
- //me $version geeft je versie van mIRC.
$asctime(N) Returns ctime values in a full date text format.
- //me $date de datum (Europees)
- //me $adate de datum (Amerikaans)
$duration(seconds) Translates numbers like 123456 into 1day 10hrs 17mins 36secs.
$logdir, $getdir, $wavedir, $mircdir Return the paths to these directories. $mircini Returns path to and name og the ini file you're using. $nopath(filename) Returns only the filename with no path. $nofile(filename) Strips the filename and returns the remaining path. $exists(filename) Checks if the given filename exists. (Returning $true or $false) $findfile(dir,filename,N) searches the specified directory tree for the Nth specified file. $ddename The DDE service name mIRC uses. $abs(N) returns the absolute value of number N. $chr(N) returns the character with ascii number N. $asc(C) returns the ascii number of the character C. $len(text) returns the length of "text". $upper(text) returns "text" in uppercase. $lower(text) returns "text" in lowercase. $left(text,N) returns the left N characters of 'text'. $right(text,N) returns the right N characters of 'text'. $mid(text,S,N) returns N characters out of 'text' starting at S. $pos(string,substring) returns the position of substring in string. $replace(string,substring,replacement) replaces a substring in a string. $remove(string,substring) removes a substring from a string. $strip(text) Strips out all bold, underline, reverse, and color control codes from text. $count(string1,string2) returns the number of times string2 occurs in string1. $str(N,text) returns "text" repeated N times. $rand(X,Y) returns a random char inbetween X and Y. $lines(file) returns the number of lines in the specified file. $usermode Returns your current personal mode. $topic(#) returns the topic of channels which you're currently on. $nick(#,N) returns Nth nickname on channel #. $snick(#,N) returns Nth selected nickname on channel #. $opnick(#,N) returns Nth Op nickname on channel #. $nopnick(#,N) returns Nth non-Op nickname on channel #. $vnick(#,N) returns the Nth voiced nick on a channel. $nvnick(#,N) returns the Nth non-op/non-voice nick on a channel. $comchan(Nick,N) returns channels which both you and Nick are on. $query(N|Nick) returns the Nth query window you have open. $chat(N) returns the nick of the Nth dcc chat window you have open. $fserv(N) returns the nick of the Nth file server window you have open. $send(N) and $get(N) return the nick of the Nth open send/get window. $notify(N) returns the Nth notify nick currently on IRC. $token(N,C,text) returns the Nth token in 'text' separated by character C (C is the ascii number of a character) $addtok(text,token,C) adds a token to the end of text but only if it's not already in text. $findtok(text,token,C) returns Nth position of token in text. $gettok(text,N,C) returns Nth token in text. $instok(text,token,N,C) inserts token into Nth position in text even if it already exists in text. $remtok(text,token,C) removes 1 matching token from text. $reptok(text,token,new,C) replaces 1 matching token with new token in text. For the above identifiers you can specify N as 0 (zero) to get the total number of nicks/channels/etc. for that identifier. $snotify returns the nick currently selected in the notify window. $address returns the full address of the user that triggered a remote line. $address(nickname,type) which scans the internal address list and returns a users address if it's found. $maddress returns the currently matched user address for an event in the remotes. $level(address) finds a matching address in the remote users list and returns its level. $ulevel returns the remote user levels that matched for an event. $clevel returns the remote command levels that matched for an event. $dlevel returns the remote default user level. $mask(address,type) returns the address with the specified mask type. Identifiers and variables can be placed inside the brackets. Example: /echo $right(3,$left($len(goats),ToMooOrNotToMoo)) results in ' Moo' Identifiers with properties. Several identifiers can be used with special parameters attached. This eases up remembering their syntax and might help a lot in scriping. The syntax is $identifier(N|#|nick).property $server(N|nick) Gives access to the servers list under File/Setup/IRC_Servers. $server(N|nick) for the address, .desc for the description, .port for the port, .group for the group. $ial(mask,N) Gives access to the Internal Address List. $ial(mask,N) for the full address, .nick for the nick, .user for the user, .host for the host, .addr for the address. $url(N) Gives access to the urls list. $url(N) for the address, .desc for the description, .group for the prefix $chan(N|#).property Returns several 'channel' settings of channels which you're currently on. $chan(N|#) returns channel name, .topic, .mode, .key, .limit, $chat(N|nick) nickname, .ip, .status (active, waiting, inactive) $fserv(N|nick) nickname, .ip, .status, .cd (current directory) $get(N|nick) nickname, .ip, .status, .file, .size, .rcvd, .cps, .pc $send(N|nick) nickname, .ip, .status, .file, .size, .sent, .lra, .cps, .pc $timer(N) Returns the timers you've active $timer(N) for the id, .com, .time, .reps, .delay, .type Dit zijn maar enkele identifiers. Meer identifiers vind je als je in mIRC op F1 drukt.
Popups Remote Aliases commandos