Skip to content

Commit 5250519

Browse files
committed
huiZz_ScoopUpdate.ahk v1.3.3 优化软件界面
1 parent 88b4f0d commit 5250519

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

RunPlugins/huiZz_ScoopUpdate.ahk

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
║ by hui-Zz 建议:hui0.0713@gmail.com 讨论QQ群:246308937
55
╚═══════════════════════════════════════════════════════════════
66
*/
7-
global RunAny_Plugins_Version:="1.3.2"
7+
global RunAny_Plugins_Version:="1.3.3"
88
#Persistent ;~让脚本持久运行
99
#SingleInstance,Force ;~运行替换旧实例
1010
DetectHiddenWindows,On
@@ -51,13 +51,13 @@ Gui,+Resize
5151
Gui,Font,,Microsoft YaHei
5252
Gui,Margin,10,10
5353
Gui,Add,Button,xm-5 yp+5 w35 h40 GSetDownDir,下载目录
54-
Gui,Add,Edit,xm+35 yp+10 w500 r1 vDownDir GSetDownDir2,%DownDir%
54+
Gui,Add,Edit,xm+35 yp+10 w650 r1 vDownDir GSetDownDir2,%DownDir%
5555
Gui,Add,Button,xm-5 yp+30 w35 h40 GSetIDMPath,IDM路径
56-
Gui,Add,Edit,xm+35 yp+10 w500 r1 vIDMPath GSetIDMPath2,%IDMPath%
56+
Gui,Add,Edit,xm+35 yp+10 w650 r1 vIDMPath GSetIDMPath2,%IDMPath%
5757
Gui,Add,Button,xm-5 yp+30 w35 h40,下载命令
58-
Gui,Add,Edit,xm+35 yp+10 w500 r1 vDownCmd GSetDownCmd,%DownCmd%
58+
Gui,Add,Edit,xm+35 yp+10 w650 r1 vDownCmd GSetDownCmd,%DownCmd%
5959
Gui,Add,Button,xm-5 yp+30 w35 h40,代理地址
60-
Gui,Add,Edit,xm+35 yp+10 w500 r1 vProxyUrl GSetProxyUrl,%ProxyUrl%
60+
Gui,Add,Edit,xm+35 yp+10 w650 r1 vProxyUrl GSetProxyUrl,%ProxyUrl%
6161
Gui,Add,Text,x+5 yp+5 vProxyStatus gProxyStatusTips,代理状态:
6262
Gui,Add,Checkbox,Checked%checkAutoRun% xm+35 yp+30 vAutoRun gSetAutoRun,启动后自动开始更新Scoop
6363
Gui,Add,Checkbox,Checked%checkAutoMin% x+10 yp vAutoMin gSetAutoMin,最小化启动
@@ -66,10 +66,9 @@ Gui,Add,Radio,x+10 yp Checked%aria2Enable% varia2Enable GSetAria2Config, aria2
6666
Gui,Font,Bold,Cascadia Mono
6767
Gui,Add,Button,xm-3 yp+30 w28 h120 GDownStart,开始批量更新
6868
Gui,Add,Button,xm-3 yp+130 w28 h120 GUpdateApp,独立批量更新
69-
Gui,Add,Edit,xm+35 yp-130 w500 r30 -Wrap HScroll vscoopStatusResult,正在查询scoop更新列表......
70-
Gui,Add,Progress,xm+35 w500 cGreen vMyProgress
71-
Gui,Add,StatusBar, xm+10 w490 vvStatusBar,
72-
GuiControl, Hide, MyProgress
69+
Gui,Add,Edit,xm+35 yp-130 w650 r30 -Wrap HScroll vscoopStatusResult,正在查询scoop更新列表......
70+
Gui,Add,Progress,xm+35 w650 cGreen Hidden vMyProgress
71+
Gui,Add,StatusBar, xm+10 w640 vvStatusBar,
7372
Gui, Show, AutoSize Center %optionAutoMin%, 【Scoop使用IDM下载更新 v%RunAny_Plugins_Version%】https://github.com/hui-Zz
7473
tcping:=Trim(cmdClipReturn("tcping -v | findstr tcping.exe")," `t`r`n")
7574
if(tcping){
@@ -220,8 +219,8 @@ GuiSize:
220219
GuiControl, Move, DownCmd, % " W" . (A_GuiWidth - 50)
221220
GuiControl, Move, ProxyUrl, % " W" . (A_GuiWidth * 0.58)
222221
GuiControl, Move, ProxyStatus, % " W" . (A_GuiWidth * 0.40) . " X" . (A_GuiWidth * 0.70)
223-
GuiControl, Move, MyProgress, % "H" . (A_GuiHeight-90) . " W" . (A_GuiWidth - 50)
224-
GuiControl, Move, scoopStatusResult, % "H" . (A_GuiHeight-220) . " W" . (A_GuiWidth - 50)
222+
GuiControl, Move, MyProgress, % " W" . (A_GuiWidth - 50) . "Y" . (A_GuiHeight-40)
223+
GuiControl, Move, scoopStatusResult, % "H" . (A_GuiHeight-240) . " W" . (A_GuiWidth - 50)
225224
return
226225
GuiClose:
227226
GuiEscape:
@@ -249,7 +248,9 @@ getScoopAppDownUrl(num, appName){
249248
DownName:=varList[2]
250249
}
251250
}
252-
Run,% Get_Transform_Val(DownCmd)
251+
if(!FileExist(DownDir "\" DownName)){
252+
Run,% Get_Transform_Val(DownCmd)
253+
}
253254
}
254255
}
255256
}

0 commit comments

Comments
 (0)