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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Chat miniwindow?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Chat miniwindow?

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


Posted by Zirix   (6 posts)  [Biography] bio
Date Wed 27 Apr 2016 02:25 AM (UTC)

Amended on Wed 27 Apr 2016 02:35 AM (UTC) by Zirix

Message
How would I go about creating a miniwindow that captures channel lines? Preferably a scrollable window, doesn't need to be resizable or movamble as I'm placing the window locations manually. I assume it would somehow work with sending matched trigger line to a new window somehow?

Examples of the kind of lines I would want to capture are.
Zirix [newbie]: testing
Zirix [chat]: testing 123
Zirix [wanted]: test 123
[chat]: Zirix goes 'Mmmmm..'.


Probably also notable that each channel does have their own channel colour that runs through the whole messages (naturally sometimes multi-line due to message length). Although when checking 'last chat/newbie/wanted/etc..' they have a timestamp in front of the message that doesn't have the colour.
(06:36) Zirix [chat]: Testing 123
[Go to top] top

Posted by Wuggly   USA  (112 posts)  [Biography] bio
Date Reply #1 on Wed 27 Apr 2016 04:38 AM (UTC)
Message
See this thread.
http://www.gammon.com.au/forum/?id=10728&reply=5#reply5
[Go to top] top

Posted by Zirix   (6 posts)  [Biography] bio
Date Reply #2 on Wed 27 Apr 2016 07:09 PM (UTC)
Message
Thanks for the link but that seems way out of my skill level to modify and I have no need for resizing or moving the window as I'd rather place its location and size manually.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Wed 27 Apr 2016 07:54 PM (UTC)
Message
All you basically have to do is use the code in reply #5 in the link above, and change the triggers to match whatever your MUD sends. The relevant lines are in bold in the post.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Wuggly   USA  (112 posts)  [Biography] bio
Date Reply #4 on Thu 28 Apr 2016 12:29 AM (UTC)

Amended on Thu 28 Apr 2016 01:19 AM (UTC) by Wuggly

Message
I've edited the <script> portion of it, removing the drag handlers, resizers, and resizer functions no longer used while adding a couple more variables so you can set the window positions easily.

There is one thing I couldn't quite figure out, and that is where the window resizer widget was, there is now a gap there. Need to expand the scroll bar part of it, and move the button down to where the gap was (and also edit the lines). Perhaps someone else here can help out with that?

If you don't mind the little gap in it...
I had to take some spaces out so it would allow me to post it below, due to the 6000 character limit.

EDIT: Couldn't get it to post even after removing a bunch of the spaces. So here it is on pastebin.
http://pastebin.com/SR7D4f03

Anyways, just set these to whatever.

WINDOW_WIDTH = 600
WINDOW_HEIGHT = 100
WINDOW_LEFT = 0
WINDOW_TOP = 0
[Go to top] top

Posted by Zirix   (6 posts)  [Biography] bio
Date Reply #5 on Thu 28 Apr 2016 11:23 AM (UTC)
Message
Thanks to the both of you! Works perfectly now.
[Go to top] top

Posted by Wuggly   USA  (112 posts)  [Biography] bio
Date Reply #6 on Thu 28 Apr 2016 11:41 AM (UTC)
Message
By the way. If you are making like a layout, you could always draw whatever mini-window is under it after drawing the chat mini-window to cover up that gap.

I had some more time and looked back into my own plugin to see how I solved the gap issue, and turns out I just covered it up with another mini-window lol.

Glad you got it all working.
[Go to top] top

Posted by Zirix   (6 posts)  [Biography] bio
Date Reply #7 on Thu 28 Apr 2016 11:52 AM (UTC)

Amended on Fri 29 Apr 2016 01:46 PM (UTC) by Zirix

Message
Yep I'm working on getting all kinds of useful miniwindows into a layout currently. http://i64.tinypic.com/nnadls.jpg is what I have so far and later I hope to add an inventory window and possibly a window showing currently active buffs/debuffs.
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #8 on Fri 29 Apr 2016 01:37 PM (UTC)
Message
Zirix said:

Yep I'm working on getting all kinds of useful miniwindows into a layout currently. https://www.dropbox.com/s/wtfmxg3in7rizh3/Screenshot%202016-04-28%2014.41.57.png?dl=0 is what I have so far and later I hope to add an inventory window and possibly a window showing currently active buffs/debuffs.

That's a broken link for me.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Zirix   (6 posts)  [Biography] bio
Date Reply #9 on Fri 29 Apr 2016 01:47 PM (UTC)
Message
Fiendish said:

Zirix said:

Yep I\'m working on getting all kinds of useful miniwindows into a layout currently. https://www.dropbox.com/s/wtfmxg3in7rizh3/Screenshot%202016-04-28%2014.41.57.png?dl=0 is what I have so far and later I hope to add an inventory window and possibly a window showing currently active buffs/debuffs.

That\'s a broken link for me.


Oh must have deleted the link when cleaning up old dropbox links, edited with a tinypic link.
[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.


3,614 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 FutureQuest]