From WikiChip
Difference between revisions of "mirc/identifiers/$dname"
(Created $dname identifier - mIRC) |
m (→Compatibility: Correct typo) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''$dname''' identifier is used within an [[On dialog - mIRC|ON DIALOG]] event to get the name of the dialog that triggered the event. | + | {{mirc title|$dname Identifier}}The '''$dname''' identifier is used within an [[On dialog - mIRC|ON DIALOG]] event to get the name of the dialog that triggered the event. |
+ | |||
== Synopsis == | == Synopsis == | ||
Line 9: | Line 10: | ||
== Example == | == Example == | ||
When any dialog opens, echo the name of the dialog to the active window: | When any dialog opens, echo the name of the dialog to the active window: | ||
− | <source lang="mIRC">ON *DIALOG:*:init:0:echo -a $dname</source> | + | <source lang="mIRC">ON *:DIALOG:*:init:0: echo -a $dname</source> |
− | |||
− | |||
− | |||
− | + | == Compatibility == | |
+ | {{mIRC compatibility|5.5}} | ||
== See Also == | == See Also == | ||
− | * | + | * {{mIRC|$devent}} |
− | * | + | * {{mIRC|$did}} |
− | * | + | * {{mIRC|$didwm}} |
− | * | + | * {{mIRC|$didreg}} |
− | * | + | * {{mIRC|$didtok}} |
− | * | + | * {{mIRC|/dialog}} |
− | * | + | * {{mIRC|/did}} |
− | * | + | * {{mIRC|/didtok}} |
* [[On dialog - mIRC|ON DIALOG]] | * [[On dialog - mIRC|ON DIALOG]] | ||
+ | {{mIRC identifier list}} | ||
− | [[Category:mIRC identifiers]] | + | [[Category:mIRC identifiers|dname]] |
Latest revision as of 01:00, 24 January 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $dname identifier is used within an ON DIALOG event to get the name of the dialog that triggered the event.
Synopsis[edit]
$dname
Parameters[edit]
None
Example[edit]
When any dialog opens, echo the name of the dialog to the active window:
ON *:DIALOG:*:init:0: echo -a $dname
Compatibility[edit]
Added: mIRC v5.5
Added on: 08 Jan 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC identifier list