ClearDelayGoto » 历史记录 » 版本 1
machenhe, 2022-04-21 17:14
| 1 | 1 | machenhe | _*%{color:green}clearDelayGoto%*_ |
|---|---|---|---|
| 2 | 清理delayGoto或delayCall设定的延时执行 |
||
| 3 | |||
| 4 | 标签:命令定义 |
||
| 5 | |||
| 6 | *格式* |
||
| 7 | |命令名 | |
||
| 8 | |clearDelayGoto | |
||
| 9 | |||
| 10 | *说明* |
||
| 11 | |||
| 12 | - |
||
| 13 | - |
||
| 14 | |||
| 15 | *%{color:deepskyblue}脚本示例:%* |
||
| 16 | |||
| 17 | bq. [@main] |
||
| 18 | #if |
||
| 19 | #act |
||
| 20 | sendMsg 6 <$time>我是@main |
||
| 21 | delayGoto 2000 @1 |
||
| 22 | %{color:lightgrey};--2秒后跳至@1% |
||
| 23 | [@1] |
||
| 24 | #if |
||
| 25 | #act |
||
| 26 | sendMsg 6 <$time>我是@1 |
||
| 27 | delaygoto 3000 @2 |
||
| 28 | clearDelayGoto |
||
| 29 | %{color:lightgrey};--跳至@2不会执行, |
||
| 30 | ;因为被clearDelayGoto清除了% |
||
| 31 | [@2] |
||
| 32 | #if |
||
| 33 | #act |
||
| 34 | sendMsg 6 <$time>我是@2 |
||
| 35 | |||
| 36 | - |
||
| 37 | - |
||
| 38 | |||
| 39 | bq. [@main] |
||
| 40 | #if |
||
| 41 | #act |
||
| 42 | sendMsg 6 <$time>我是@main |
||
| 43 | delayCall 2000 @1 |
||
| 44 | %{color:lightgrey};--2秒后跳至@1% |
||
| 45 | [@1] |
||
| 46 | #if |
||
| 47 | #act |
||
| 48 | sendMsg 6 <$time>我是@1 |
||
| 49 | delayCall 3000 @2 |
||
| 50 | clearDelayGoto |
||
| 51 | %{color:lightgrey};--跳至@2不会执行, |
||
| 52 | ;因为被clearDelayGoto清除了% |
||
| 53 | [@2] |
||
| 54 | #if |
||
| 55 | #act |
||
| 56 | sendMsg 6 <$time>我是@2 |