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

Log on
Register forum user name Search FAQ

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  capture irregular multiline to miniwindow

capture irregular multiline to miniwindow

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


Posted by Daklaar   (1 post)  [Biography] bio
Date Thu 17 Dec 2020 04:18 AM (UTC)

Amended on Thu 17 Dec 2020 04:20 AM (UTC) by Daklaar

Message
Trying to capture a group list to push to a miniwindow. It can range from 1 row to 10 rows and is ANSI colored. I can get a trigger to match the header and push it to a new window but not all of it and not dynamically.

Member              Hits      Move      Position  Fly Inv Water iMT Here Light Mem
------------------------------------------------------------------------------------
  RE Character1          v.good    rested    standing   Y   Y    Y    Y   Y     0    0


or

Member              Hits      Move      Position  Fly Inv Water iMT Here Light Mem
------------------------------------------------------------------------------------
  RE Character1          v.good    rested    standing   Y   Y    Y    Y   Y     0    0
  PA Character2          good    rested    standing   Y   Y    Y    Y   Y     0    0
  ED Character3          fair    rested    standing   Y   Y    Y    Y   Y     0    0
  AD Character4          v.good    rested    standing   Y   Y    Y    Y   Y     0    0
  BC Character5          awful    rested    standing   Y   Y    Y    Y   Y     0    0
  RA Character6          v.good    rested    standing   Y   Y    Y    Y   Y     0    0
[Go to top] top

Posted by Fiendish   USA  (2,315 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Thu 17 Dec 2020 04:43 AM (UTC)

Amended on Thu 17 Dec 2020 04:45 AM (UTC) by Fiendish

Message
It seems like this question has nothing to do with miniwindows and actually is just about variable-line-count capturing.

What you want is two triggers instead of just one. One trigger activates on the header and then enables a disabled catch-all "*" trigger for the rest of the lines. When the header trigger fires, activate the catch-all trigger to capture the rest of the lines. Then have the catch-all trigger disable itself when it sees a blank line.

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

Posted by Nick Gammon   Australia  (22,556 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Fri 18 Dec 2020 04:32 AM (UTC)
Message
Template:faq=37 Please read the MUSHclient FAQ - point 37.

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


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