项目

一般

简介

SetAutoRecycleEnable » 历史记录 » 修订 2

修订 1 (machenhe, 2022-05-10 17:50) → 修订 2/13 (yangdefeng, 2022-05-26 18:22)

_*%{color:green}setAutoRecycleEnable%*_ 

 设置自动回收权限是否启用 

 标签:命令定义|setAutoRecycleEnable 

 *格式* 
 |命令名 			 |参数1 		 | 
 |setAutoRecycleEnable 	 |是否开启权限 	 | 

 说明: 
 * 参数1: 参数1 
 是否开启权限 
 ** 1:开启 
 ** 0:关闭 


 *%{color:deepskyblue}脚本示例:%* 

 bq. [<notextile>@</notextile>开启自动回收权限] 
 #act 
 setautoRecycleEnable 1 
 sendMsg 6 开启了自动回收 
 goto <notextile>@</notextile>自动回收状态切换 

 bq. [<notextile>@</notextile>关闭自动回收权限] 
 #act 
 setautoRecycleEnable 0 
 setautoRecycle 0 
 sendMsg 6 关闭了自动回收 


 bq. [<notextile>@</notextile>自动回收状态切换] 
 #if 
 equal <$autoRecycleEnable> 0 
 #act 
 messagebox 未开启自动回收权限 
 break 

 bq. #if 
 equal <$autoRecycleEnable> 1 
 #act 
 goto <notextile>@</notextile>勾选框状态切换 

 bq. [<notextile>@</notextile>勾选框状态切换] 
 #if 
 equal <$autoRecycle> 0 
 #act 
 setAutoRecycle 1 
 sendmsg 6 状态:<$autoRecycle> 
 #elseact 
 setAutoRecycle 0 
 sendmsg 6 状态:<$autoRecycle>