Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Quick-enable plugins?
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Ebondream
(2 posts) Bio
|
Date
| Mon 30 Mar 2015 10:37 AM (UTC) |
Message
| 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? | Top |
|
Posted by
| Chyort
USA (58 posts) Bio
|
Date
| Reply #1 on Mon 30 Mar 2015 04:24 PM (UTC) |
Message
| Make 2 aliases that use EnablePlugin.
http://www.gammon.com.au/scripts/function.php?name=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. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #2 on Mon 30 Mar 2015 08:55 PM (UTC) |
Message
| 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:
<aliases>
<alias
match="rl"
enabled="y"
send_to="12"
sequence="100"
>
<send>
if ReloadPlugin ("63e6909083318cf63707c044") == error_code.eNoSuchPlugin then
check (LoadPlugin ("/program files/mushclient/worlds/plugins/example_mapper.xml"))
end
Note "plugin reloaded"
</send>
</alias>
</aliases>
 |
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 | 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.
13,996 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top