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

Gammon Software Solutions 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
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Number of characters typed
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Razoric480   Canada  (2 posts)  [Biography] bio
Date Mon 01 Jun 2009 03:19 PM (UTC)  quote  ]
Message
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

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Mon 01 Jun 2009 02:56 PM (UTC)  quote  ]

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

Message
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())
end


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 Mon 01 Jun 2009 02:32 PM (UTC)  quote  ]
Message
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?

Thanks
[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.


1,235 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]