[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Quick-enable plugins?
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Quick-enable plugins?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Ebondream   (2 posts)  [Biography] bio
Date Mon 30 Mar 2015 10:37 AM (UTC)
Bit of a silly question probably, but if there is a particular plugin I need to activate/deactivate on a regular basis, is there any way to to create some kind of short-cut, either as a clickable button or binding a keytroke to it?
[Go to top] top

Posted by Chyort   USA  (57 posts)  [Biography] bio
Date Reply #1 on Mon 30 Mar 2015 04:24 PM (UTC)
Make 2 aliases that use EnablePlugin.


One true, one false.

Now put those aliases in 2 differnt Macros. So every time you press F7 lets say, it enables the plugin. Every time you press F8 lets say it disables it.

Quick and dirty but it will work. If you want to add some real scripting you can make it a true toggle and only require one macro/button. Or any other number of ways.

This should be enough to get you started however.
[Go to top] top

Posted by Nick Gammon   Australia  (21,651 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Mon 30 Mar 2015 08:55 PM (UTC)
On a related note, when I am testing the same plugin many times, I find it helpful to have a "reload plugin" alias (which I call "rl).

Here it is, I adapt it by changing the plugin ID and pathname as appropriate when working on different plugins:


if ReloadPlugin ("63e6909083318cf63707c044") == error_code.eNoSuchPlugin then
  check (LoadPlugin ("/program files/mushclient/worlds/plugins/example_mapper.xml"))

Note "plugin reloaded"


Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.

First it tries to reload the plugin (in case you already have it loaded) - which handles the case of you just making a change. However if the change causes a syntax error then the plugin is not loaded any more in which case you get the return code error_code.eNoSuchPlugin. So in that case it does LoadPlugin to load it again from disk.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]