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

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Separating Output?

Separating Output?

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

Posted by Oddgamer   (9 posts)  [Biography] bio
Date Tue 19 Oct 2021 12:56 AM (UTC)
So... I'm trying to do some sorting of the output I get from my favorite Mu*. I have pages coming in ("X pages you: <whatever>"), as well as things that show up on channels ("[Channel Name] <text>") as well as 'other' (basically everything else). What I WANT to have happen is that the pages and channel stuff are put somewhere _other than_ the main window, and, for preference, keep all colors and so on, but _also_ have a timestamp out front so I'll know when that came through, but so I can ignore it if I'm busy with things dealing with the main stuff. Sometimes pages and channels can get... spammy... and I want to be able to KEEP THEM in case they're important, but also not HAVE TO have them in front of me. Color is a frequently important aspect of the Mu*, even in those areas, so that's why I'm hoping to keep the color.
What would be the best way to go about this? I can send a line based on trigger to a notepad, but that strips color, and I can't figure out how to put in the time-stamp (which is important so that I know if I go check it out I can tell if it was there five minutes ago or a couple hours). I might be willing to lose the color if that makes it easier, but the time-stamp thing is a big one.
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Fri 22 Oct 2021 03:07 PM (UTC)
I do all this in the Aardwolf MUSHclient Package, so it's possible. But it can be a lot of work.

What would be the best way to go about this?

There isn't one. There are only two bad ways, miniwindows or secondary world files. Which you use depends on how deep into scripting you like to get. Secondary world files give you native text handling but with some limitations in how they look and can be arranged. Miniwindows give you (potentially) nicer appearance but at the expense of a lot of complex code to mimic native text features like color/wrapping/selecting/etc.

Search the forum for "chat capture" or "channel capture" or maybe even just "capture" and you'll find lots of threads talking about it.

[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Wed 27 Oct 2021 05:40 AM (UTC)
The basics of separating output into separate windows is discussed in a few threads, including this one:


I think there may be ways of having multiple windows, read that thread and see what you find.

Adding a timestamp would be pretty trivial, you would have to remember the time when saving the chat line, and make code to add it to the start of the drawn lines.

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


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