Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Miniwindows
➜ Chat miniwindow?
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Zirix
(6 posts) 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
| | Top |
|
| Posted by
| Wuggly
USA (112 posts) Bio
|
| Date
| Reply #1 on Wed 27 Apr 2016 04:38 AM (UTC) |
| Message
| |
| Posted by
| Zirix
(6 posts) 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) 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 | | Top |
|
| Posted by
| Wuggly
USA (112 posts) 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
| | Top |
|
| Posted by
| Zirix
(6 posts) Bio
|
| Date
| Reply #5 on Thu 28 Apr 2016 11:23 AM (UTC) |
| Message
| | Thanks to the both of you! Works perfectly now. | | Top |
|
| Posted by
| Wuggly
USA (112 posts) 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. | | Top |
|
| Posted by
| Zirix
(6 posts) 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. | | Top |
|
| Posted by
| Fiendish
USA (2,555 posts) 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 | | Top |
|
| Posted by
| Zirix
(6 posts) 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. | | 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.
36,978 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top