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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  miniwindow chat capture

miniwindow chat capture

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


Posted by Jaksynrender   (7 posts)  [Biography] bio
Date Tue 20 Dec 2022 04:16 PM (UTC)
Message
i am unable to capture gossip in the miniwindow im new to mushclient here is my current triggers

<trigger
enabled="y"
match="* \(gossip\) '*'"
script="chats"
omit_from_output="y"
sequence="100"
></trigger>

<trigger
enabled="y"
match="You [gossip] '*'"
script="chats"
omit_from_output="y"
sequence="100"
></trigger>

here is an example of the gossip in game one is from me one is from someone else would like to capture both

You [gossip] 'uhh test.
Someone (gossip) [ uhh test ]


I know its the brackets and parenthesis but im not a coder
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Tue 20 Dec 2022 05:57 PM (UTC)
Message
Quote:
the miniwindow

Please link to the miniwindow you're talking about.

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

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Tue 20 Dec 2022 07:41 PM (UTC)
Message
In the first one:


 match="* \(gossip\) '*'"


You have backslashes there but it is not a regular expression. Try removing the backslashes.




In the second one:


 match="You [gossip] '*'"


You have a closing quote but your test data does not:


 You [gossip] 'uhh test.

- Nick Gammon

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

Posted by Jaksynrender   (7 posts)  [Biography] bio
Date Reply #3 on Tue 20 Dec 2022 08:34 PM (UTC)

Amended on Tue 20 Dec 2022 09:44 PM (UTC) by Jaksynrender

Message
sorry its your chat window Fiendish

name="Chat_Capture_Miniwindow"
author="Fiendish"

here is exact from my window and 2nd char window from prompt sorry cut off earlier.

You [gossip] 'test :)'.

Someone (gossip) [ test :) ]

i changed the triggers here is all my current triggers the rest are working but gossip doesnot:
the match="* **tells you '*'"
catches both direct tells and group tells





<triggers>
    <trigger
    enabled="y"
    match="You say '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="* **tells you '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="* says '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="You tell * '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>


    <trigger
    enabled="y"
    match="* (gossip) '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="You [gossip] '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>
</triggers>
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] bio   Global Moderator
Date Reply #4 on Tue 20 Dec 2022 11:50 PM (UTC)
Message
Quote:

You [gossip] 'test :)'.

This ends in a period that your pattern doesn't include.

Quote:

Someone (gossip) [ test :) ]

This has square brackets where your pattern has single quotes.

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

Posted by Jaksynrender   (7 posts)  [Biography] bio
Date Reply #5 on Wed 21 Dec 2022 12:40 AM (UTC)
Message
so simple TY TY TY very much.
<--- not a programmer but im learning :) ty again
[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.


5,714 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 HostDash]