Register forum user name Search FAQ

Gammon Forum

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.
 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ MiniWindow Channel Capture

MiniWindow Channel Capture

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


Pages: 1 2  3  

Posted by Cooldown   (18 posts)  Bio
Date Sun 14 Mar 2010 05:32 AM (UTC)
Message
I'm attempting to capture text from one or two channels into a miniwindow and I'm not entirely sure how. I'm used to a different client and scripting in MUSHClient so far has really just confused me so I was hoping to get some help in how to create the window properly and how to capture the text to it. Any help you can give me would be greatly appreciated.
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 14 Mar 2010 05:43 AM (UTC)
Message
Do you mean scrolling text, like chat, or fixed stuff, like the current room or map or something?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Cooldown   (18 posts)  Bio
Date Reply #2 on Sun 14 Mar 2010 06:19 AM (UTC)
Message
Scrolling text. I want to capture a chat channel to the miniwindow so that I can read it easier rather than trying to see through the long battle scroll I sometimes have when fighting.
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 14 Mar 2010 06:40 AM (UTC)
Message
This post describes something similar, the only problem being you can't scroll back:

Template:post=9218 Please see the forum thread: http://gammon.com.au/forum/?id=9218.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Cooldown   (18 posts)  Bio
Date Reply #4 on Sun 14 Mar 2010 07:10 AM (UTC)

Amended on Sun 14 Mar 2010 12:48 PM (UTC) by Cooldown

Message
Is there a way to make it so you can scroll it back? Also, I don't really understand this plugin. I've tried to edit it to suit my needs but I don't think I'm doing it right. Sorry about this, I've only ever done basic things with triggers and this client is confusing me a bit.

Nevermind, I found another page on here and that script seems to work perfectly. Sorry to have bothered you with this.
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #5 on Mon 05 Apr 2010 01:07 AM (UTC)
Message
I am still quite interested in that idea of having backscrolling in a text-only miniwindow.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #6 on Mon 05 Apr 2010 02:54 AM (UTC)
Message
I think someone had a library that implemented those, but am not quite sure.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #7 on Mon 05 Apr 2010 05:58 AM (UTC)
Message
Yeah, I just found it. Thanks.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Cooldown   (18 posts)  Bio
Date Reply #8 on Fri 09 Apr 2010 05:34 PM (UTC)
Message
Fiendish, you mind telling me how you managed to make it scroll then? I haven't figured it out as of yet.
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #9 on Fri 09 Apr 2010 06:48 PM (UTC)

Amended on Fri 09 Apr 2010 07:20 PM (UTC) by Fiendish

Message
Sure, but it's easier to start with a demonstration.

Take a look at ...
http://code.google.com/p/aardwolfclientpackage/source/browse/trunk/Aardwolf_Chat_Capture_mw.xml

Keep in mind that it's customized for Aardwolf, relies on the latest movewindow.lua file that isn't yet in the installer (I think it will be in 4.52) but can be gotten from the git repository, and is very much a work in progress.
I still have to fill in the ScrollerMoveCallback function, which deals with actually grabbing the scrollbar shuttle, and am going to work on cleaning it up a bit. The original implementation that I took ideas from is pretty sloppy now that I've spent some time looking at it. But I've got ideas in mind already. Just haven't gotten to writing them down and uploading them. (The shuttle is what I'm calling that block that goes up and down along the scrollbar when you scroll. Does it have a proper name?)
Also, I'd eventually like to be able to grab mousewheel events and use them for scrolling too, but MUSHclient doesn't yet support that.

Features included in this channel capture are as follows:
miniwindow-based
10,000 line backscroll history
message timestamps
optional echo in main window
scroll bar with up/down scroll buttons that indicates amount of scrollback relative to the current amount visible via the shuttle size.
drag bar across the top for re-positioning
mouse-driven resizing tab so you can resize the window during use.
Text dynamically re-flows and the scrollbar shuttle resizes itself as you resize the window. (The text-reflow is currently quite inefficient, but the performance is only really an issue with a lot of scroll history)

If you have specific questions about what's going on, I'm happy to answer. Though if you wait until I'm finished, or if someone else wants to solve the above issues before I get to it, I'm sure I or someone else could help you repurpose the result for your MUD.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #10 on Fri 09 Apr 2010 10:41 PM (UTC)
Message
Edit: I finished the ScrollerMoveCallback stuff.
So now the feature list includes scrolling up and down by grabbing the shuttle.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #11 on Fri 09 Apr 2010 11:24 PM (UTC)
Message
Fiendish said:

(The shuttle is what I'm calling that block that goes up and down along the scrollbar when you scroll. Does it have a proper name?)


Scrollbar "thumb".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #12 on Fri 09 Apr 2010 11:35 PM (UTC)
Message
Looks great! Couple of suggestions:


  • Click on a line to select or copy it (copying messages is something you do quite often)
  • RH click or something to select or copy all (or maybe RH click for a menu, including configure, select all, omit timestamps etc.)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #13 on Fri 09 Apr 2010 11:53 PM (UTC)
Message
And maybe make the timestamp grayer (like in the older chat window). It sort of hits you in the eye.

And have an option to omit the original from the main window (oh I see that is in the plugin as an alias). But hey, if we are doing GUI, may as well have a menu. :-)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #14 on Sat 10 Apr 2010 02:51 AM (UTC)
Message
All very cool suggestions. I'll add them in the next few updates.

https://github.com/fiendish/aardwolfclientpackage
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.


115,467 views.

This is page 1, subject is 3 pages long: 1 2  3  [Next page]

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.