Difference between revisions of "Category:Identifiers"

From Scriptwiki
Jump to: navigation, search
m
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Identifiers are sort of functions. Except, identifier always must return a value. When identifier is evaluated in command line or script, it replaces it with the current value of that identifier. Identifiers which cannot be evaluated or evaluate to no value return the value [[$null]]. $null can be used again in [[If-Then-Else|if-then-else]] structures or in comparison.
+
Identifiers are a sort of functions. Except, identifier always must return a value. When an identifier is being evaluated in the command line or script, it is being replaced by its current value. Identifiers which cannot be evaluated or evaluate to no value return the value [[$null]], that can be used in [[If-Then-Else|if-then-else]] structures or in comparisons.
  
 
Most identifiers ain't even recognised as identifiers because of their generality in [[mIRC]] scripting.
 
Most identifiers ain't even recognised as identifiers because of their generality in [[mIRC]] scripting.
  
  
Just to mention few, [[$me]] returns to your current nickname. [[$ctime]] returns in current unixtime. [[$mircdir]] returns directory of mIRC program. Identifier can hold different values. [[$ibl]](#mirc,1) returns the first address in the ban list, [[$ibl]](#mirc,1).by the address of user who set the ban, $ibl(#mirc,1).date returns the date when the user set the ban.
+
Just to mention a few, [[$me]] returns your current nickname, [[$ctime]] returns in current unixtime, [[$mircdir]] returns mIRC's basedir. Identifier can hold different values. [[$ibl]](#mirc,1) returns the first address in the ban list, [[$ibl]](#mirc,1).by the address of user who set the ban, $ibl(#mirc,1).date returns the date when the user set the ban.
  
 
Some not so wellknown idenfiers are [[$1-]] (it really is an identifier too), [[$?]] and [[$0]].
 
Some not so wellknown idenfiers are [[$1-]] (it really is an identifier too), [[$?]] and [[$0]].
Line 10: Line 10:
 
=== Groups ===
 
=== Groups ===
 
The identifiers are organized by groups as follows:
 
The identifiers are organized by groups as follows:
[[Time and Date Identifiers]]
+
[[:Category:Time and Date Identifiers|Time and Date Identifiers]],
[[File and Directory Identifiers]]
+
[[:Category:File and Directory Identifiers|File and Directory Identifiers]],
[[Nick and Address Identifiers]]
+
[[:Category:Nick and Address Identifiers|Nick and Address Identifiers]],
[[Text and Number Identifiers]]
+
[[:Category:Text and Number Identifiers|Text and Number Identifiers]],
[[Token Identifiers]]
+
[[:Category:Token Identifiers|Token Identifiers]],
[[Window Identifiers]]
+
[[:Category:Window Identifiers|Window Identifiers]]  
[[Other Identifiers]]
+
[[:Category:Mouse and Menu Identifiers|Mouse and Menu Identifiers]]
 +
and
 +
[[:Category:Other Identifiers|Other Identifiers]]
  
There are also specialized identifiers for [[Agents]], [[Dde Control]], [[Custom Windows]], [[Picture Windows]], [[Sockets]], [[Remote Scripts|Remote]], [[Dialogs]], [[Binary Files]], [[Hash Tables]], [[Regular Expressions]], [[COM Objects]], [[Signals]], [[Multi-server]], [[Internal Address List]], [[Sounds]], and [[File Handling]].
+
There are also specialized identifiers for  
 +
[[Agents]],
 +
[[Dde Control]],  
 +
[[Custom Windows]],  
 +
[[Picture Windows]],  
 +
[[:Category:Socket|Sockets]],  
 +
[[:Category:Remote|Remote]],  
 +
[[:Category:Dialogs|Dialogs]],  
 +
[[:Category:Binary Files|Binary Files]],  
 +
[[:Category:Hash Table|Hash Tables]],  
 +
[[:Category:Regular Expressions|Regular Expression]],  
 +
[[COM Objects]],  
 +
[[Signals]],  
 +
[[:Category:Multi-server|Multi-server]],  
 +
[[:Category:IAL|Internal Address List]],  
 +
[[Sounds]]  
 +
and  
 +
[[:Category:File Handling|File Handling]].
  
 
== See Also ==
 
== See Also ==
* [[Evaluation brackets]] are used for evalutating identifiers.
+
* [[Evaluation brackets]] are used for evaluating identifiers.
* [[How_to_use_identifiers_or_if_in_a_timer]]?
+
* [[How to use identifiers or if in a timer]]?
  
 
{{Author|Tovrleaf}}
 
{{Author|Tovrleaf}}
  
 
[[Category:mIRC_Help]]
 
[[Category:mIRC_Help]]

Latest revision as of 18:15, 3 February 2007

Identifiers are a sort of functions. Except, identifier always must return a value. When an identifier is being evaluated in the command line or script, it is being replaced by its current value. Identifiers which cannot be evaluated or evaluate to no value return the value $null, that can be used in if-then-else structures or in comparisons.

Most identifiers ain't even recognised as identifiers because of their generality in mIRC scripting.


Just to mention a few, $me returns your current nickname, $ctime returns in current unixtime, $mircdir returns mIRC's basedir. Identifier can hold different values. $ibl(#mirc,1) returns the first address in the ban list, $ibl(#mirc,1).by the address of user who set the ban, $ibl(#mirc,1).date returns the date when the user set the ban.

Some not so wellknown idenfiers are $1- (it really is an identifier too), $? and $0.

Groups

The identifiers are organized by groups as follows: Time and Date Identifiers, File and Directory Identifiers, Nick and Address Identifiers, Text and Number Identifiers, Token Identifiers, Window Identifiers Mouse and Menu Identifiers and Other Identifiers

There are also specialized identifiers for Agents, Dde Control, Custom Windows, Picture Windows, Sockets, Remote, Dialogs, Binary Files, Hash Tables, Regular Expression, COM Objects, Signals, Multi-server, Internal Address List, Sounds and File Handling.

See Also

Contributed by Tovrleaf