Looking for ways to view only the commands/input sent during a session

Posted by Silverwood on Thu 07 Jan 2010 10:26 PM — 4 posts, 15,044 views.

#0
In order to easily create aliases/speedwalks using information already entered through MUSHclient, I was wondering what methods are available to view sent commands. Could you guys please give some pointers?

An ideal situation (I don't know if MUSHclient has this or not) would be to have another window displaying only the input added during the session. Using log files showing only input does help, though I would like to know if the former feature exists, or if I could temporarily change the view settings to see only input. Thanks again for helping! =)
USA #1
0xDEADBEEF. How's that for a pointer?


In all seriousness, you could create a plugin with an OnPluginSent plugin callback, which appends every command to a notepad. As an example (without the extra plugin XML fluff):

function OnPluginSent(command)
  AppendToNotepad("Sent Commands", command .. "\n")
end
Australia Forum Administrator #2
In other words, install this plugin:

Template:saveplugin=Show_Sent_Commands
To save and install the Show_Sent_Commands 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_Sent_Commands.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_Sent_Commands.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 Friday, January 08, 2010, 1:03 PM -->
<!-- MuClient version 4.45 -->

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

<muclient>
<plugin
   name="Show_Sent_Commands"
   author="Nick Gammon"
   id="7bff541d04311483d4eeb785"
   language="Lua"
   purpose="Keeps track of what is sent to the MUD"
   date_written="2010-01-08 13:02:43"
   requires="4.40"
   version="1.0"
   >

</plugin>


<!--  Script  -->


<script>
<![CDATA[
function OnPluginSent(command)
  AppendToNotepad("Sent Commands", command .. "\r\n")
end
]]>
</script>


</muclient>


This will keep track of everything sent to the MUD (even if you didn't type it yourself). That is, movement with the numeric keypad, the result of triggers acting, etc.
#3
Wow! Many thanks to Twisol and Nick here for helping out with the plugin - one thing I've always loved about this client and site is the amazing rate at which the community responds. Cheers to you guys. :)