|
Bradach Beginner
Joined: 21 Mar 2003 Posts: 19 Location: USA
|
Posted: Mon Oct 06, 2003 6:09 pm
#WAIT |
Is there any way to clear a command that has been #WAIT'ed?
EX:
-----------
#WAIT 10000
SAY HI
-----------
What if I want to abort the command SAY HI five seconds into the wait? |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Mon Oct 06, 2003 6:22 pm |
I don't think its possible, you should try using a alarm instead, then you can delete the alarm if you want to stop it.
#alarm +10 {say hi} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Oct 06, 2003 7:44 pm |
#ABORT 1
|
|
|
|
Andromeda Beginner
Joined: 29 Aug 2003 Posts: 25 Location: USA
|
Posted: Mon Oct 06, 2003 7:59 pm |
I find the escape key clears a wait in progress.
Is there a way to detect an escape key press so that triggers can be stopped in flight? |
|
|
|
Bradach Beginner
Joined: 21 Mar 2003 Posts: 19 Location: USA
|
Posted: Tue Oct 07, 2003 6:15 pm |
Ok, next question:
I'd considered using #ALARM but I couldn't get it to work any differently than #WAIT
Can someone please give me a complete example? Talahaski says to delete the alarm, but I don't know how to do that. LightBulb says to use #ABORT 1, but I didn't get the results I need, unless I have the context wrong. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Oct 07, 2003 6:35 pm |
To delete an alarm, use the #untrigger command.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Oct 07, 2003 10:44 pm |
Perhaps you could give us a complete example? Maybe some details on the results you want? How you intend to use it?
I took your example and pasted it to my command line.
#WAIT 10000
SAY HI
Sure enough, after about 10 seconds I got
SAY HI
Then I did that again
#WAIT 10000
SAY HI
But this time, after hitting Enter I typed in
#ABORT 1
This probably took me 2-3 seconds, but certainly far less than 10. After waiting about 20 seconds, there was still no further output. This sounds like exactly what you asked for, a way to abort the command SAY HI several seconds into the wait. |
|
|
|
Bradach Beginner
Joined: 21 Mar 2003 Posts: 19 Location: USA
|
Posted: Wed Oct 08, 2003 4:28 am |
Thanks, that worked. I don't know why I had a problem when I first tried it, but it works fine now.
Thanks again!
Bradach |
|
|
|
|
|