|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sat Jul 24, 2010 5:20 am
Possible Request? |
I don't know of a command which clears out the queue for CMUD commands. Currently, if I'm sending lines from a text file to the MUD (through the send option from the toolbar) or if I have an alias run that screws up but has #wait in it, then I'm unable to cancel the line output without force-crashing my client.
Would it be possible to get a command that stops all lines queued to go through cmud but waiting behind a timer? |
|
|
|
dbosst Apprentice
Joined: 15 Jun 2010 Posts: 121
|
Posted: Sat Jul 24, 2010 1:17 pm |
If you are not talking about the #INPUT command...(I've never used it but it appears to clear the current command queue, but not commands that are maybe going to be executed after a #wait)
Best idea I have is you can try putting the alias (that screws up with a #wait) in a separate thread, and just #stop threadname -- that is a simple fix to stop the script at any point
If neither of those do it, you can always use a general oninput trigger that uses #noinput to stop text from being sent to the mud... |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat Jul 24, 2010 3:28 pm |
Doesn't
#ABORT 1
Still provide this functionality like it did in zMUD? |
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Jul 24, 2010 4:44 pm |
It does. I think you can also use the ESC key as well.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sat Jul 24, 2010 4:45 pm |
dbosst wrote: |
If you are not talking about the #INPUT command...(I've never used it but it appears to clear the current command queue, but not commands that are maybe going to be executed after a #wait)
Best idea I have is you can try putting the alias (that screws up with a #wait) in a separate thread, and just #stop threadname -- that is a simple fix to stop the script at any point
If neither of those do it, you can always use a general oninput trigger that uses #noinput to stop text from being sent to the mud... |
I don't know anything about threads, but I can learn them. However, the aliases aren't generally an issue, as they rarely have wait commands. The big issue is the sending a text file to the mud through CMUD. I'll see if #abort works, I've never heard of it. |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat Jul 24, 2010 6:47 pm |
I have about 30 scripts that take advantage of #ABORT 1 to kick out if they hit an error. The downside being if other scripts are running at the same time.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Jul 24, 2010 7:10 pm |
Some of those might not be necessary, Ralgith. Depending on what they are doing, you might be able to use #BREAK
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat Jul 24, 2010 7:58 pm |
I have a bunch with #BREAK too ;)
A lot of my #ABORT usages will disappear when I move to CMUD, since I'll be able to turn a bunch of my alias+multi-trigger setups into singles that have #WAITFOR inside the aliases instead. Will be a lot more efficient since I can have WAITFOR time out. |
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sun Jul 25, 2010 4:30 pm |
ESC worked for the sending file, Abort didn't. Though it was sort of clunky in that it didn't always work and sometimes had to be hit multiple times, and the "busy" cursor wouldn't disappear. But thank you, now I know how to stop that happening.
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sun Jul 25, 2010 7:04 pm |
Make sure you're using "#ABORT 1" and not just #ABORT
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|