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

(Created $agentname identifier - mIRC)
 
Line 1: Line 1:
 
'''$agentname''' can be used in conjunction with the [[On agent - mIRC|ON AGENT Event]] in order to return the name of the Agent associated with the event.
 
'''$agentname''' can be used in conjunction with the [[On agent - mIRC|ON AGENT Event]] in order to return the name of the Agent associated with the event.
  
= Synopsis =
+
== Synopsis ==
 
<pre>$agentname</pre>
 
<pre>$agentname</pre>
  
= Parameters =
+
== Parameters ==
 
None
 
None
  
= Example =
+
== Example ==
 
'''After the ON AGENT Event triggers, return the name of the Agent that just finished speaking'''
 
'''After the ON AGENT Event triggers, return the name of the Agent that just finished speaking'''
 
<source lang="mIRC">ON *:AGENT:echo -a $agentname has just finished speaking.</source>
 
<source lang="mIRC">ON *:AGENT:echo -a $agentname has just finished speaking.</source>
  
= Compatibility =
+
== Compatibility ==
 
Added: mIRC v5.9
 
Added: mIRC v5.9
  
 
Addon On: 26/04/2001
 
Addon On: 26/04/2001
  
= See Also =
+
== See Also ==
 
* [[On agent - mIRC|ON AGENT Event]]
 
* [[On agent - mIRC|ON AGENT Event]]
  

Revision as of 14:21, 23 June 2014

$agentname can be used in conjunction with the ON AGENT Event in order to return the name of the Agent associated with the event.

Synopsis

$agentname

Parameters

None

Example

After the ON AGENT Event triggers, return the name of the Agent that just finished speaking

ON *:AGENT:echo -a $agentname has just finished speaking.

Compatibility

Added: mIRC v5.9

Addon On: 26/04/2001

See Also