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
➜ General
➜ send command to command line
|
send command to command line
|
You need to log onto the forum to reply or create new threads.
Refresh page
| Posted by
| Aardwanderer
(7 posts) Bio
|
| Date
| Thu 20 Nov 2025 01:32 AM (UTC) Amended on Thu 20 Nov 2025 03:24 AM (UTC) by Aardwanderer
|
| Message
| I am having issues sending a command to the command line.
I have Auto-repeat Command on and I use it quit often, so I don't want to turn it off. The issue I'm having is that the functions: DoAfterSpecial(.1, "", sendto.command) and SetCommand("") don't seem to work if there is already text in the command line. I confirmed that they do work if the command line is empty. I also tried creating a trigger and an alias with send_to="1" with the same result (worked if Auto-repeat Command is off, but not when on).
I tried inserting: SetOption("auto_repeat", 0) before the above functions hoping that would let them overwrite the command line text, but that didn't work.
Is there a command that will clear the command line or something I'm missing so those commands would work even with Auto-repeat Command on?
Here is my alias:
<alias
match="mgt *"
enabled="y"
group="mapper_alias"
send_to="12"
sequence="100"
>
<send>
if "%1" == "mob" then
Execute("mapper goto 1234")
Execute("where mob")
DoAfterSpecial(.1, "kill mob", sendto.command)
--SetCommand("kill mob") --should do the same as line above, but without the .1 wait
else
Execute("mapper goto %1")
end --if
</send>
</alias>
| | Top |
|
| Posted by
| Fiendish
USA (2,544 posts) Bio
Global Moderator |
| Date
| Reply #1 on Tue 25 Nov 2025 08:55 PM (UTC) |
| Message
| | This is the documented behavior of SetCommand. Try instead using SetCommandSelection followed by PasteCommand. |
https://github.com/fiendish/aardwolfclientpackage | | 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.
11 views.
You need to log onto the forum to reply or create new threads.
Refresh page
top