Sending a newline or pressing enter key.

Posted by Wuggly on Sat 06 Feb 2016 12:34 AM — 6 posts, 26,212 views.

USA #0
Hello again,
I have a trigger that sends a colournote.

ColourNote ("green", "", "Equipment Stats Successfully Updated")


However the note won't show until after you press enter in-game after the match.

Is there any way to force it to show the note after the trigger match without having to press enter?

Like how the "Test Trigger..." thing works, where you can press ctrl+enter to make a blank line under the trigger so you can see if the trigger responded.

I tried adding \n into the colournote, but again it wouldn't work until after you press enter.
Amended on Sat 06 Feb 2016 05:39 AM by Wuggly
Australia Forum Administrator #1
Template:version
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.
USA #2
Using version 4.94

This is part of the script from my other post that you helped me greatly with (putting stats into a table and pulling them out).

It's not a big issue, it would just make it more... efficient. Instead of having it stop reading their equipment stats by a DoAfter timer, I have it set now to stop reading as soon as it sees the first prompt line after it lists the equipment (that's where the colournote comes in, so they know for sure the stats it collected that are in the miniwindow are accurate and updated), this way lag won't be an issue that could mess it up.


Thank you for being so noob friendly.
Australia Forum Administrator #3
Quote:

However the note won't show until after you press enter in-game after the match.


It's probably because of recent changes that defer notes if you are in the middle of a prompt line. If you make your MUD prompt end with a newline the problem should go away.
USA #4
I did manage to get the script that forces a newline after the prompt to work, however it didn't help with the colournote, still had to press enter to see it.

http://mushclient.com/forum/?id=7430
(reason I couldn't get it to force a newline before was because of the arrows in it. I replaced with \< and \> and it worked)

I did email devs awhile ago about it(newline after prompt), and they responded saying it is supposed to go on the same line as the prompt, so I highly doubt I can convince them to change that.


I suppose I'll just have to go back to using timers.

Thanks for the response.
Australia Forum Administrator #5
See the FAQ - there are ways of forcing newlines after prompts.