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:
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>