From WikiChip
Difference between revisions of "mirc/identifiers/$dname"
< mirc‎ | identifiers

m (Bot: Fixing links)
m (Compatibility: Correct typo)
 
(7 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>
 
 
== Compatbility ==
 
Added: mIRC v5.5
 
  
Added On: 08/01/99
+
== Compatibility ==
 +
{{mIRC compatibility|5.5}}
  
 
== See Also ==
 
== See Also ==
* [[$devent identifier - mIRC|$devent]]
+
* {{mIRC|$devent}}
* [[$did identifier - mIRC|$did]]
+
* {{mIRC|$did}}
* [[$didwm identifier - mIRC|$didwm]]
+
* {{mIRC|$didwm}}
* [[$didreg identifier - mIRC|$didreg]]
+
* {{mIRC|$didreg}}
* [[$didtok identifier - mIRC|$didtok]]
+
* {{mIRC|$didtok}}
 
* {{mIRC|/dialog}}
 
* {{mIRC|/dialog}}
 
* {{mIRC|/did}}
 
* {{mIRC|/did}}
Line 28: Line 27:
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|dname]]

Latest revision as of 02:00, 24 January 2024

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]

[Expand]
v · d · e mIRC identifier list