Characters Counter

Posted by KaiserBear on Fri 09 Sep 2016 01:45 AM — 5 posts, 20,291 views.

#0
I'm not sure if this is an option I click somewhere or a plugin. I used to have it so that on my info pane it would show the characters in my command line, but when I switched computers it isn't there anymore and I can't remember how I set it up.

Can anyone help me with this?
USA Global Moderator #1
Woah, that's a really good idea! In like 15 years of MUDding I've never thought to do that lol.

Here. You might have gotten it from this forum thread.

http://www.mushclient.com/forum/bbshowpost.php?bbsubject_id=9470
#2
I actually tried that before this post but it didn't seem to work for me.
Australia Forum Administrator #3
It worked OK for me. Here it is, turned into a plugin:

Template:saveplugin=Show_Characters_Typed
To save and install the Show_Characters_Typed plugin do this:
  1. Copy the code below (in the code box) to the Clipboard
  2. Open a text editor (such as Notepad) and paste the plugin code into it
  3. Save to disk on your PC, preferably in your plugins directory, as Show_Characters_Typed.xml
    • The "plugins" directory is usually under the "worlds" directory inside where you installed MUSHclient.
  4. Go to the MUSHclient File menu -> Plugins
  5. Click "Add"
  6. Choose the file Show_Characters_Typed.xml (which you just saved in step 3) as a plugin
  7. Click "Close"
  8. Save your world file, so that the plugin loads next time you open it.



<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, September 10, 2016, 8:12 AM -->
<!-- MuClient version 5.02 -->

<!-- Plugin "Show_Characters_Typed" generated by Plugin Wizard -->

<muclient>
<plugin
   name="Show_Characters_Typed"
   author="Worstje"
   id="22b61a28a371832a5d226960"
   language="Lua"
   purpose="Show how many characters in the command line"
   date_written="2016-09-10 08:11:36"
   requires="4.50"
   version="1.0"
   >

</plugin>

<!--  Script  -->

<script>
<![CDATA[
function OnPluginCommandChanged()
  -- OnPluginCommandChanged() gets called each time
  -- the command window changes.
  
  SetStatus("Character count: " .. GetCommand():len())
end
]]>
</script>

</muclient>
Amended on Fri 09 Sep 2016 09:15 PM by Nick Gammon
#4
Nick's worked just great, thanks Nick!