Script function
world.GetAliasOption
Read about scripting
Type
Method
Summary
Gets the value of a named alias option
Prototype
VARIANT GetAliasOption(BSTR AliasName, BSTR OptionName);
View list of data type meanings
Description
Gets the current value of a alias option.
You must specify the name of an existing alias, and a alias option from the list below. These are the same names as used in the XML world files for alias options.
The return type is Variant, so the returned value will be the appropriate type for the data (ie. string or number (long)).
If the option name is not known, or is not allowed to be retrieved, a NULL variant is returned.
If the named alias does not exist, EMPTY is returned. If the name given is invalid, NULL is returned. If the option name is not known, EMPTY is returned. (Use "IsEmpty" and "IsNull" to test for these possibilities).
For a detailed description about the meanings of the fields, see AddAlias.
If GetAliasOption is called from within a plugin, the aliases for the current plugin are used, not the "global" MUSHclient aliases.
OPTION NAMES
"echo_alias" - echo alias itself to the output window
"enabled" - enabled flag
"expand_variables" - expand variables flag
"group" - group name
"ignore_case" - ignore case flag
"keep_evaluating" - keep testing this command for other aliases
"match" - what to match on
"menu" - menu flag
"omit_from_command_history" - omit command from command history
"omit_from_log" - omit from log file flag
"omit_from_output" - omit from output flag
"one_shot" - one shot flag
"queue" - queue flag
"regexp" - regular expression flag
"script" - script routine to call
"send" - what to send
"send_to" - where to send it (see GetAliasInfo for valid values)
"sequence" - sequence number
"speed_walk" - speedwalk flag
"user" - user value
VBscript example
world.note world.GetAliasOption ("myalias", "match")
Jscript example
world.note (world.GetAliasOption ("myalias", "match"));
PerlScript example
$world->note ($world->GetAliasOption ("myalias", "match"));
Python example
world.note (world.GetAliasOption ("myalias", "match"))
Lua example
Note (GetAliasOption ("myalias", "match"))
Lua notes
Lua returns nil where applicable instead of an "empty variant" or "null variant".
Return value
As described above.
See Also ...
Topics
Aliases
Auto-mapper
Default triggers/aliases/timers/macros/colours
Getting started
Groups
Keypad navigation
Macro keys
Plugins
Regular Expressions
Speed walking
Timers
Triggers
Functions
AddAlias (Adds an alias)
DeleteAlias (Deletes an alias)
DeleteAliasGroup (Deletes a group of aliases)
DeleteTemporaryAliases (Deletes all temporary aliases)
EnableAlias (Enables or disables an alias)
EnableAliasGroup (Enables/disables a group of aliases)
GetAlias (Gets details about an alias)
GetAliasInfo (Gets details about an alias)
GetAliasList (Gets the list of aliases)
GetAliasWildcard (Returns the contents of the specified wildcard for the named alias)
GetPluginAliasInfo (Gets details about a named alias for a specified plugin)
GetPluginAliasList (Gets the list of aliases in a specified plugin)
IsAlias (Tests to see if an alias exists)
SetAliasOption (Sets the value of a named alias option)
(Help topic: function=GetAliasOption)
Documentation contents page
|