From WikiChip
Difference between revisions of "mirc/identifiers/$"
Line 2: | Line 2: | ||
The ''$'' character is a reference point for all identifiers, and some operations. ''$'' is usually followed by any number of built-in mIRC identifier names, with which there are hundreds of properties to choose from. | The ''$'' character is a reference point for all identifiers, and some operations. ''$'' is usually followed by any number of built-in mIRC identifier names, with which there are hundreds of properties to choose from. | ||
− | ''$'' is also a synonym for $eval. | + | ''$'' is also a synonym for ''$eval''. |
==Examples As Identifier== | ==Examples As Identifier== |
Revision as of 12:33, 20 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $ character is a reference point for all identifiers, and some operations. $ is usually followed by any number of built-in mIRC identifier names, with which there are hundreds of properties to choose from.
$ is also a synonym for $eval.
Examples As Identifier
Some examples of the $ used as an identifier include the following:
$dialog(mydialog).title
- Retrieves the title for the specified dialog.
$1
- Grabs the first word from an event, such as an on events.
$() itself is a valid identifier which works much like $eval
Examples As Operation
The $ can also precede some characters and words in order to perform a specific operation, such as concatenating characters, or groups of characters together. Below are a few examples:
alias testme { var %myvar1 = Join m, %myvar2 = e with this, %join = %myvar1 $+ %myvar2 echo -a %join }
- This will join the two variables, resulting in the output: "Join me with this" being echoed to the active window.
alias testme { echo -a $calc(33 * 77) }
- This will multiply "33" & "77", then output the result to the active window.
Others
There are just too many identifiers and operators that deal with $ to cover here. Refer to the identifier's index for a more thorough and complete list.
mIRC identifier list