Documentazione mIRC

$agent

$agent

Indice

mIRC

Commands & Identifiers

Basics

Events

Matching Tools

Data Storage

Control Structures

GUI Scripting

Sockets

Advanced Scripting

Additional Resources

Security

Other

$agent returns the filename of the Nth available agent installed on your system, or informations about a loaded agent.

Contents

Synopsis

$agent(N).property
$agent(name,[N2]).property

Parameters

NThe Nth agent available on your system

nameThe name used in /gload to load the agent

N2The N2th queued line for a loaded agent.

Properties

When N is passed as the first parameter, the following property is available:

PropertyDescription
charReturns the character name of the Nth agent instead of the filename.

When name is passed as the first parameter, the following properties are available:

PropertyDescription
nameReturns the name you gave to this agent
fnameReturns the filename you gave to this agent, or the filename to the default agent
visibleReturns $true if the agent is visible, $false otherwise
xReturns the x coordinate of the position of the agent (left)
yReturns the y coordinate of the position of the agent (top)
wReturns the current width of the agent
hReturns the current height of the agent
owReturns the original width of the agent
ohReturns the original height of the agent
speedReturns the speaking speed of the agent
pitchReturns the speaking pitch of the agent
idleReturns $true if the idle behavior is on, $false otherwise
effectsReturns $true if the effects are on, $false otherwise
activeReturns $true if the agent is active, $false otherwise
langidReturns the language ID of the system
balloonsReturns the balloons settings, can be on, off, size, pace, hide
hideReturns the auto hide setting
animReturns the names of the animations available for this agent, you can use N2 to get the N2th animation.
lineReturns the list of lines currently queued for talking for this agent, you can use N2 to get the N2th line.

Example

//echo -a $agent(0)

Compatibility

Added: mIRC v5.7
Added on: 02 Feb 2000

Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See Also