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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ Hide macros from command history
|
Hide macros from command history
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Phydeaux
USA (4 posts) Bio
|
| Date
| Sat 10 Dec 2005 10:20 PM (UTC) |
| Message
| I'd like to see a macro option that prevents a macro from being saved in command history.
I wrote a plugin that works whenever it sees a certain text sequence in the world, which I've macro'd to a function key. When I press this key, I get that sequence in my command histroy, which isn't desired. I haven't found a way around this yet, so apologies if there's already a solution. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 11 Dec 2005 07:29 AM (UTC) |
| Message
| There is a way ...
I assume by Macro you mean something like Alt+A in the macros configuration screen.
Rather than sending the command directly, get the macro to send something you almost certainly won't ever type in, like:
Alt+A:
Send: 0bcd6c2239d328207b4ffa7e
Then make an alias to pick up that exact sequence:
<aliases>
<alias
match="0bcd6c2239d328207b4ffa7e"
enabled="y"
omit_from_command_history="y"
omit_from_output="y"
sequence="100"
>
<send>eep</send>
</alias>
</aliases>
What this is doing is matching the sequence the macro generated, and doing the send from the alias. With omit_from_command_history set to "y" the command is not entered into the command history.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Phydeaux
USA (4 posts) Bio
|
| Date
| Reply #2 on Sun 11 Dec 2005 01:01 PM (UTC) |
| Message
| | Ah. Much nicer. Thank you! | | 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.
12,136 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top