Connect to -no- world?

Posted by MattMc on Mon 15 May 2006 08:18 AM — 7 posts, 29,016 views.

USA #0
Hi,

I've decided that instead of using a notepad as a window capture frame, I'd like to use a .mcl so I can log in color, and using an easy syntax (capture.ansinote xxx). This all works well until I accidentally ctr-tab into the window and hit enter.

To make the MCL world, I put a period in for the address to connect to. I tried local hosts, or other random symbols, and "." resolved the fastest to nothing. Is there a way to tell mushclient that I just don't want that world connecting to -anything-? If I hit enter, I don't want it to try to connect. Ideally, if I type something into that command line, I'd like to be able to script and have it send to all open worlds, but first I need to make sure the window won't be popping up on me complaining that it can't resolve ".".

Thanks,
Matt
Australia Forum Administrator #1
Install this plugin. It uses OnPluginCommand to discard all command input, thus MUSHclient does not try to connect to the world:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Tuesday, May 16, 2006, 8:35 AM -->
<!-- MuClient version 3.73 -->

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

<muclient>
<plugin
   name="DiscardCommands"
   author="Nick Gammon"
   id="cecb3017c301090366991c09"
   language="Lua"
   purpose="Discard all typed commands"
   date_written="2006-05-16 08:34:46"
   requires="3.73"
   version="1.0"
   >

</plugin>


<!--  Script  -->


<script>
<![CDATA[
function OnPluginCommand (s)
  return false -- do not process it
end -- function OnPluginCommand 
]]>
</script>


</muclient>
Australia Forum Administrator #2
Also, I must compliment you on an inventive way of giving yourself a full-colour, multi-line notepad window.

Using a non-connected world as a notepad replacement is quite a nice idea. You can use the full colour set, do searching, log the window contents, copy as HTML, and generally have access to all the features supported in the main window.

In fact, as a variant of what you are trying to do, you could make the plugin simply send commands back to the "main" world, so that if you typed something, it actually affects the connected world.
Australia Forum Administrator #3
Quote:

Is there a way to tell mushclient that I just don't want that world connecting to -anything-?


To facilitate this idea, you can now make the world IP address "0.0.0.0" and MUSHclient will not attempt to connect to it, and any messages (for the MUD) typed into the command window are ignored (unless they are aliases or scripts).

Also, you can now resize the command window down to zero height, so that the "dummy" world window is effectively a coloured output window, into which you can put whatever you want.

These features are in version 3.83.
USA #4
Nick,

You rock!

Matt
USA #5
Is there any way that you can make it that if A) command line height is 0, and B) the window is not maximized, that when you ctr-tab through the windows, it can just skip that window? Or better yet, it sets the window to focus, but then continues to the next window?
USA #6
you might be able to do the set focus through a script/plugin installed into the sent to world, that checks if it is the active world, and if so sets the next world active. Don't ask me how to do that, but I am sure it is possible.

I myself don't need that, because I have my MAIN world sized down, so that my sent to world is a little smaller than 1/4th the screen, and is placed at the top right, and my MAIN world is sized to NOT be covered by the sent to world, and this still allows me a col width of 85 chars at 1024x768 resolution.

Hope the theory of the plugin can help someone make it, or help yourself to make it as well.

Laterzzz,
Onoitsu2