[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]  General
. . -> [Subject]  Number of characters typed
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Number of characters typed

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

Posted by Razoric480   Canada  (2 posts)  [Biography] bio
Date Mon 01 Jun 2009 02:32 PM (UTC)
I've had a peek around and didn't quite see anything that related to this. Essentially, I notice that the status bar shows how many lines is in the output currently, how long you've been logged in, and what world you're in right now. However, I haven't found any options to modify this and add something I'd find to be useful.

I use MUSHClient for a social roleplay MUCK, and in some cases, I type fairly large paragraphs. The MUCK, however, has a cut-off line of approximately 1024 characters (before you'd need to add the rest on its own line).

Right now, I have my input box arranged in such a way that, when I'm on the line where I ought to cut off, I can look at the scroll bar and make a rough guess, but it's not very handy. Is there a way, through scripting or otherwise, to display how many characters you've typed so far in the input box?

[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #1 on Mon 01 Jun 2009 02:56 PM (UTC)

Amended on Mon 01 Jun 2009 03:00 PM (UTC) by Worstje

That is quite simple. I'll walk you through the process to make a plugin that does this so you can learn from it. :)

1) Go to File->Plugin Wizard... Fill out all the different tabs - use values that seem appropriate. Do NOT select any triggers, variables, aliases or timers, and just to be safe, make sure the checkbox for their removal is turned off.

2) In the script section, select the Lua language and place the following code:

function OnPluginCommandChanged()
  -- OnPluginCommandChanged() gets called each time
  -- the command window changes. It is a rather new
  -- addition, so make sure you have a recent version
  -- of MUSHclient.
  SetStatus("Character count: " .. GetCommand():len())

3) Click Create and save the XML file somewhere you can remember. It should have been autoloaded now. DONE! :)

This was typed from memory, so if any errors happen, let me know - it's untested :)
[Go to top] top

Posted by Razoric480   Canada  (2 posts)  [Biography] bio
Date Reply #2 on Mon 01 Jun 2009 03:19 PM (UTC)
At first, when I installed it, nothing had happened and was about to report so, but then I updated to the latest MUSHClient (4.40) and now it works like a charm.

Thanks a bundle :) It works great!

Maybe I ought to learn LUA, would probably be handy.
[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]