From WikiChip
Difference between revisions of "mirc/commands/alias"
m (Bot: Adding a template) |
m (Update -s switch.) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|/alias Command}} | ||
The '''/alias command''' can be used to add, replace and remove aliases. This command ONLY works for single line aliases. By default mIRC will add the alias to the first aliases script file. | The '''/alias command''' can be used to add, replace and remove aliases. This command ONLY works for single line aliases. By default mIRC will add the alias to the first aliases script file. | ||
Line 4: | Line 5: | ||
== Synopsis == | == Synopsis == | ||
− | /alias [filename] <aliasname> [command] | + | /alias -s [filename] <aliasname> [command] |
== Switches == | == Switches == | ||
− | + | <!--- https://forums.mirc.com/ubbthreads.php/topics/246550/alias-runs-silently ---> | |
+ | * '''-s''' - shows the alias command being performed. | ||
== Parameters == | == Parameters == | ||
Line 35: | Line 37: | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|4.5}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | * | + | * {{mIRC|$isalias}} |
− | * | + | * {{mIRC|$alias}} |
− | * | + | * {{mIRC|$exists}} |
− | * | + | * {{mIRC|$file}} |
− | * | + | * {{mIRC|/load}} |
− | * | + | * {{mIRC|/save}} |
− | * | + | * {{mIRC|/unload}} |
− | * | + | * {{mIRC|/add}} |
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:mIRC commands|alias command - mIRC]] |
Latest revision as of 23:37, 23 October 2022
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /alias command can be used to add, replace and remove aliases. This command ONLY works for single line aliases. By default mIRC will add the alias to the first aliases script file.
Note: Trying to remove a multi-line alias will result in a "unable to remove" error message.
Synopsis[edit]
/alias -s [filename] <aliasname> [command]
Switches[edit]
- -s - shows the alias command being performed.
Parameters[edit]
- [filename] - Optional parameter that can be used to specify which aliases file to use, the file must be already loaded.
- <aliasname> - The name of the alias to use.
- [command] - If specified, the commands that are associated with the alias (you can specify multiple commands on one line by seperating them properly with pipes), if not specified the alias is removed.
Example[edit]
;Adds a new alias by the name "cookies" ;You can now do /cookies /Alias /Cookies /me hands out the cookie jar ;We replaced the old cookies alias with this new one /Alias /Cookies /me Steals someone's cookies! ;Remove the alias /Alias /Cookies
Output:
* Added '/Cookies' alias * Replaced '/Cookies' alias * Removed '/Cookies' alias
Compatibility[edit]
Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC commands list