Making Identifiers
While making an identifier may seem like a really big hassle, its as easy as making an alias. Just remember that if theres already am identifier, you can't make one under the same name.
All identifiers you make will be almost identical to an alias, only it will use the return command to return to info to the identifier.
In the following example whenever mIRC comes to the $atime Identifier it will run this alias, which will set the %atime variable as the current time. Then using if/then/else and $token it will check to see if itz past noon or before and then change the %atime variable accordingly. Then with the return command it sends the info back to the $atime identifier.
Suppose it was 4:20pm and 35 secs, the $time identifier would return 16:20:35, but by making this $atime Identifier, you can use $atime and it will return 4:20pm.
The $atime Identifier
Alias:
atime {
set %atime $gettok($time,1,58)
if (%atime >= 13) { %atime = %atime - 12 | return %atime $+ : $+ $gettok($time,2,58) $+ pm }
else if (%atime == 12) { return %atime $+ : $+ $gettok($time,2,58) $+ pm }
else if (%atime == 0) { %atime = %atime + 12 | return %atime $+ : $+ $gettok($time,2,58) $+ am }
else { return %atime $+ : $+ $gettok($time,2,58) $+ am }
}
Usage:
You can use the $atime identifier anywhere, just like a regular Identifier.
Note: I'll add more when I think of a better way to explain it...
This page hosted by Get your own Free Homepage
©1996 The Scripters Guild All Rights Reserved
Please send all questions and comments to TiAMaT