Triggers "Send to" -- Send to normal window/world?

Posted by Eurotool on Tue 21 Jul 2015 02:44 AM — 6 posts, 24,752 views.

#0
I spent a good time trying to find an answer, but I can't find anything that answers my question. I want my world to omit and output lines which contain a specific text, using triggers, to a seperate window which will display them. The "send to" box, however, only lists obscure commands and doesn't have the option to output to a custom window. No, I do not want notepad, I want a real window in the same style and a line buffer.

Is there a way to do this without external scripts?

Thanks for your help!
Australia Forum Administrator #1
A while ago I used to do this by using an (internal) script in the trigger to send the line to a "dummy world" window. For example:

Template:faq=23
Please read the MUSHclient FAQ - point 23.


Alternatively you could send to a miniwindow, using a plugin.

For example, see this:

http://www.gammon.com.au/forum/?id=10728
#2
Okay, thank you, I finally got everything working!

Is there a way to automatically clear the output window on start? Also, do the windows keep their tiling/arrangement upon restart of the program?

Edit: There seems to be a small delay in which the triggered text appears in the main window before it is sent to the chat one. Is there any way to fix this?
Amended on Tue 21 Jul 2015 05:55 PM by Eurotool
Australia Forum Administrator #3
Quote:

Is there a way to automatically clear the output window on start?


Template:function=DeleteOutput
DeleteOutput

The documentation for the DeleteOutput script function is available online. It is also in the MUSHclient help file.



Quote:

Also, do the windows keep their tiling/arrangement upon restart of the program?


I don't think the secondary ones do. You could always force them into position.

Quote:

There seems to be a small delay in which the triggered text appears in the main window before it is sent to the chat one.


There shouldn't be. Perhaps you need to call Redraw() on the target window.
#4
I called Redraw () on the target window and a Repaint () but there's still a small delay in which the text appears in the main world before being omitted and sent to the chat world. Is there anything else I can do about it? Could it be something wrong in the trigger?
Australia Forum Administrator #5
Is this a prompt line? Maybe there is no newline on it?