Skip to content

Commit 830a73d

Browse files
committed
规则循环最大次数如果是0,则不做循环
1 parent 9e03ccc commit 830a73d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

RunAny.ahk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
╔══════════════════════════════════════════════════
3-
║【RunAny】一劳永逸的快速启动工具 v5.8.2 @2022.05.21
3+
║【RunAny】一劳永逸的快速启动工具 v5.8.2 @2022.10.22
44
║ 国内Gitee文档:https://hui-zz.gitee.io/RunAny
55
║ Github文档:https://hui-zz.github.io/RunAny
66
║ Github地址:https://github.com/hui-Zz/RunAny
@@ -25,7 +25,7 @@ global PluginsDir:="RunPlugins" ;~;插件目录
2525
global RunAnyConfig:="RunAnyConfig.ini" ;~;配置文件
2626
global RunAny_ObjReg:="RunAny_ObjReg.ini" ;~;插件注册配置文件
2727
global RunAny_update_version:="5.8.2" ;~;版本号
28-
global RunAny_update_time:="2022.05.21" ;~;更新日期
28+
global RunAny_update_time:="2022.10.22" ;~;更新日期
2929
global iniPath:=A_ScriptDir "\RunAny.ini" ;~;菜单1
3030
global iniPath2:=A_ScriptDir "\RunAny2.ini" ;~;菜单2
3131
Gosub,Config_Set ;~;01.配置初始化
@@ -4130,7 +4130,7 @@ class RunCtrl
41304130
noMenu:=true ;无菜单项应用
41314131
key:="" ;规则组全局热键
41324132
ruleLogic:=true ;规则组逻辑:与、或
4133-
ruleMostRun:=0 ;规则循环最大次数
4133+
ruleMostRun:="" ;规则循环最大次数
41344134
ruleIntervalTime:=0 ;循环间隔时间(秒)
41354135
runNums:="" ;运行次数
41364136
runList:=Object() ;应用运行队列
@@ -4220,7 +4220,7 @@ Rule_Effect:
42204220
funcEffect%rcName%:=Func("RunCtrl_RunRules").Bind(runCtrlObj) ;规则定时器
42214221
ruleTime:=runCtrlObj.ruleIntervalTime>0 ? runCtrlObj.ruleIntervalTime * 1000 : 1000 ;规则定时器间隔时间(秒)
42224222
SetTimer,% funcEffect%rcName%, %ruleTime%
4223-
}else{
4223+
}else if(runCtrlObj.ruleMostRun=""){
42244224
RunCtrl_RunRules(runCtrlObj)
42254225
}
42264226
}
@@ -5015,7 +5015,7 @@ FileAppend,
50155015
;在别名最末尾添加Tab制表符+热键(参考AHK写法:^代表Ctrl !代表Alt #代表Win +代表Shift),如选中文字按Alt+z百度
50165016
百度(&B) !z|https://www.baidu.com/s?wd=
50175017
谷歌(&G) !g|https://www.google.com/search?q=`%s&gws_rd=ssl
5018-
翻译(&F) #z|https://translate.google.cn/#auto/zh-CN/
5018+
翻译(&F)|https://translate.google.cn/#auto/zh-CN/
50195019
异次元软件|http://www.iplaysoft.com/search/?s=548512288484505211&q=`%s
50205020
淘宝(&T)|https://s.taobao.com/search?q=`%s
50215021
京东(&D)|https://search.jd.com/Search?keyword=`%s&enc=utf-8
@@ -7553,7 +7553,7 @@ RunCtrlLVEdit:
75537553
RuleGroupLogic1:=RunCtrlList[RunCtrlListBox].ruleLogic
75547554
RuleGroupLogic2:=RuleGroupLogic1 ? 0 : 1
75557555
RuleMostRun:=RunCtrlList[RunCtrlListBox].ruleMostRun
7556-
RuleMostRun:=RuleMostRun=0 ? "" : RuleMostRun
7556+
RuleMostRun:=RuleMostRun<0 ? "" : RuleMostRun
75577557
RuleIntervalTime:=RunCtrlList[RunCtrlListBox].ruleIntervalTime
75587558
RuleIntervalTime:=RuleIntervalTime=0 ? "" : RuleIntervalTime
75597559
RuleGroupKey:=RunCtrlList[RunCtrlListBox].key

0 commit comments

Comments
 (0)