项目

一般

简介

SetAutoRecycleEnable » 历史记录 » 版本 9

yangdefeng, 2022-05-26 20:37

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