SetAutoRecycleEnable » 历史记录 » 版本 13
yangdefeng, 2022-07-12 13:57
1 | 3 | yangdefeng | h4. _*%{color:green}setAutoRecycleEnable%*_ |
---|---|---|---|
2 | 1 | machenhe | |
3 | 设置自动回收权限是否启用 |
||
4 | 10 | yangdefeng | 相关变量<$autoRecycleEnable> 自动回收勾选是否可用 |
5 | 1 | machenhe | |
6 | 标签:命令定义|setAutoRecycleEnable |
||
7 | |||
8 | *格式* |
||
9 | |命令名 |参数1 | |
||
10 | |setAutoRecycleEnable |是否开启权限 | |
||
11 | |||
12 | 说明: |
||
13 | * 参数1: 是否开启权限 |
||
14 | 10 | yangdefeng | ** 1:开启,<$autoRecycleEnable>设为1 |
15 | ** 0:关闭,<$autoRecycleEnable>设为0 |
||
16 | 1 | machenhe | |
17 | 3 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
18 | 1 | machenhe | |
19 | 6 | yangdefeng | *使用前提* |
20 | 请开启配置开关\"isUseCustomOKPanel\" |
||
21 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
22 | |配置节点|[[tjconfig|[tjconfig]]] | |
||
23 | |配置项 |isUseCustomOkPanel=1 | |
||
24 | |||
25 | 9 | yangdefeng | *相关变量* |
26 | 6 | yangdefeng | |
27 | 9 | yangdefeng | <$autoRecycleEnable> 自动回收勾选是否可用 |
28 | |||
29 | <$autoRecycle> 自动回收勾选是否选中 |
||
30 | |||
31 | 4 | yangdefeng | - |
32 | - |
||
33 | 9 | yangdefeng | |
34 | h4. |
||
35 | 4 | yangdefeng | |
36 | 1 | machenhe | bq. [<notextile>@</notextile>main] |
37 | #say |
||
38 | 6 | yangdefeng | <text:开启自动回收权限:10:20/<notextile>@</notextile>开启自动回收权限> |
39 | <text:关闭自动回收权限:10:80/<notextile>@</notextile>关闭自动回收权限> |
||
40 | 11 | yangdefeng | <text:呼出自动回收:10:140/<notextile>@</notextile>呼出自动回收> |
41 | |
||
42 | [<notextile>@</notextile>呼出自动回收] |
||
43 | #act |
||
44 | [[openRecycleItem]] |
||
45 | 4 | yangdefeng | |
46 | [<notextile>@</notextile>开启自动回收权限] |
||
47 | 1 | machenhe | #act |
48 | *{color:green}setAutoRecycleEnable* 1 |
||
49 | [[sendMsg]] 6 开启了自动回收 |
||
50 | 4 | yangdefeng | |
51 | [<notextile>@</notextile>关闭自动回收权限] |
||
52 | 1 | machenhe | #act |
53 | 3 | yangdefeng | *{color:green}setAutoRecycleEnable* 0 |
54 | [[setAutoRecycle]] 0 |
||
55 | 4 | yangdefeng | [[sendMsg]] 6 关闭了自动回收 |
56 | 1 | machenhe | |
57 | 13 | yangdefeng | h4. |
58 | 1 | machenhe | |
59 | 8 | yangdefeng | bq. %{color:deepPink}..\Mir200\Envir\Market_Def\QFunction-0.txt以下触发器 |
60 | 点击回收界面中自动回收勾选时触发% |
||
61 | 12 | yangdefeng | %{color:darkOrange}[<notextile>@</notextile>autoRecycle]% |
62 | 1 | machenhe | #if |
63 | 3 | yangdefeng | [[equal]] <$autoRecycleEnable> 0 |
64 | 1 | machenhe | #act |
65 | 13 | yangdefeng | [[setAutoRecycle]] 0 |
66 | 3 | yangdefeng | [[messageBox]] 未开启自动回收权限 |
67 | break |
||
68 | |
||
69 | #if |
||
70 | 1 | machenhe | [[equal]] <$autoRecycleEnable> 1 |
71 | #act |
||
72 | 3 | yangdefeng | goto <notextile>@</notextile>勾选框状态切换 |
73 | 1 | machenhe | |
74 | 3 | yangdefeng | [<notextile>@</notextile>勾选框状态切换] |
75 | 1 | machenhe | #if |
76 | 3 | yangdefeng | [[equal]] <$autoRecycle> 0 |
77 | 1 | machenhe | #act |
78 | 3 | yangdefeng | [[setAutoRecycle]] 1 |
79 | 4 | yangdefeng | [[sendMsg]] 6 状态:<$autoRecycle> |
80 | 3 | yangdefeng | #elseAct |
81 | [[setAutoRecycle]] 0 |
||
82 | [[sendMsg]] 6 状态:<$autoRecycle> |