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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Spawning windows

Spawning windows

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


Posted by Llyra   USA  (2 posts)  [Biography] bio
Date Tue 09 Apr 2002 01:18 PM (UTC)
Message
Is there an easy way to get MushClient to spawn off a new window from a world based on a string?

For example..I'd like to be able to separate channel spam from my main character window, and have it sent to another window. I also use logging, so I'd need to be able to log both windows.

I recently tried out SimpleMu and noticed that it has this built into the program, but I haven't been able to find a similar option on MC. Any ideas? Or maybe this is something that can be implemented in a future version?
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 09 Apr 2002 10:41 PM (UTC)
Message
Yes, you can set up a trigger (normal or regular expression). Lines matching the trigger can be sent to a different window.

Select "Send to" -> "Notepad (append)". The "send" text would be "%0" - the whole matching line.

The notepad window will be labelled with the trigger label. To omit the spam from the main window also check "omit from output".

This is a text window, not full colouring, however it should be adequate.

By turning logging on for the main world you would log everything. If you wanted to log the windows separately you need to go to a bit more work, using scripting.

However, one simple approach is to check "omit from log file" for the trigger, so the spam is not logged in the main log file, and then when you close the notepad window simply save it to disk, effectively keeping a log of that too.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


8,022 views.

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.

[Home]


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 HostDash]