-
Notifications
You must be signed in to change notification settings - Fork 33
Writing Macros
There are two ways of creating macros in MUSHclient, one of them is much more flexible but the other is a bit easier to use if its limitations don't impact your needs.
The simplest way of creating macros is through the Macros and Keypad configuration dialogs. You can find them by pressing
Shift+Ctrl+2
and
Shift+Ctrl+1
or by using the menu options
Game->Configure->Macros...
and
Game->Configure->Keypad...
There you will find a set of predefined key combinations that you can use for sending various commands to the MUD. The limitations are that you cannot create new key combinations in these dialogs other than the ones that are already there, and you cannot process any kind of script functions.
The more flexible way to create macros is through a scripting feature called Accelerators. Accelerators can be made for any key combination and are overall more flexible in what they can do, though in order for them to persist you have to stick them inside a plugin because otherwise they go away when you quit.
The MUSHclient FAQ has an entry on creating accelerators that you should read here:
http://mushclient.com/forum/?id=7794#39
You may also want to read the relevant documentation:
http://mushclient.com/scripts/doc.php?function=Accelerator
http://mushclient.com/scripts/doc.php?function=AcceleratorTo
See this FAQ entry about how to fix that:
Project Details
- Introduction
- Why Should I Use This?
- Installing and Upgrading
- Version Numbering
- Who makes this?
- Mac/Linux/BSD/etc
- License And Other Misc Project Info
Guide/FAQs
- FAQ
- Writing Aliases
- Writing Macros
- Writing Triggers
- Using Variables
- Using GMCP
- Command Line Aliases and Triggers
- Converting Scripts
- GMCP-only Channels
- Miniwindow Basics
- Changing the server address
Featured Components
- ASCII automap
- Text Substitution (sub and gag)
- GMCP driven world mapper
- Communication log window
- Copy with color codes
- Group monitor window
- Health bars
- Stats window
- Bigmap display
- Main output layout
- Automatic update checker
- Miniwindow Color Themes
- Easy DIY Miniwindows
Required Plugins (do not uninstall)
Useful Other Bits